Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Login Please!!

by poj (Abbot)
on Dec 30, 2002 at 23:11 UTC ( [id://223213]=note: print w/replies, xml ) Need Help??


in reply to Login Please!!

Hello eoin, I recognised that code .. as my suggestion !
The problem is here my ($ur,$ps) = split(/\t/, $_, 2); which expects your password file to be tab delimited like this username<tab>password
I don't think yours is. If it is space delimited then use my ($ur,$ps) = split(' ',$_,2);
If you have more than 2 fields then add $null1, $null2 as required.

poj

Replies are listed 'Best First'.
Re: Re: Login Please!!
by iguanodon (Priest) on Dec 31, 2002 at 03:11 UTC
    If you have more than 2 fields then add $null1, $null2 as required.

    Picking nits, I know, but how about adding undef, undef as required? I hate to see values assigned to variables that won't be used.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://223213]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-18 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found