Perl: the Markov chain saw | |
PerlMonks |
Re^2: checking values of variablesby fishmonger (Chaplain) |
on Aug 12, 2013 at 16:03 UTC ( [id://1049140]=note: print w/replies, xml ) | Need Help?? |
print "help\n" unless %params;
That does not do what the OP's if conditional does. The OP want's to execute help() if any one of the vars is empty. Your unless test requires ALL vars to be empty.
In Section
Seekers of Perl Wisdom
|
|