in reply to Login Please!!
(For an explanation of why this is, consult the description of "split" in perlfunc.)$ur = "eoin"; $ps = "pass\ttest\t1234\tadmin\tsys";
Drop the third argument, and you'll be O.K.
Stylistic comment: Consider returning a boolean (i.e., 0 or 1) instead of "Valid"/"notValid". There's far less chance of subtle typos causing you hours of debugging grief.
|
|---|