Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: checking values of variables

by fishmonger (Hermit)
on Aug 12, 2013 at 16:03 UTC ( #1049140=note: print w/ replies, xml ) Need Help??

in reply to Re: checking values of variables
in thread checking values of variables

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.

Comment on Re^2: checking values of variables

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-11-27 16:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls