in reply to When art thy variables defined?
if((not defined $username) || ($username eq ""))
Just guessing, but I think perl is seeing:
if(not defined($username || ($username eq "")))
It is usually a good idea to explicitly put brackets around everything you want to logically group. Old programmers are religious about this because each language has a different set of operator precedences. After you program in a few, they all mush together and you have no chance of remembering which ones work in the language you are currently programming in.
____________________
Jeremy
I didn't believe in evil until I dated it.
|
|---|