Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: equivalent code for unless

by merlyn (Sage)
on Feb 05, 2005 at 13:04 UTC ( #428311=note: print w/replies, xml ) Need Help??

in reply to equivalent code for unless
in thread unless statements

unless ($boolean) { ... }
is nearly completely equivalent to:
if (not $boolean) { ... }
(The slight difference is in the "last expression evaluated" return value for a subroutine, but that's only a minor distracting point.)

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2016-10-27 14:11 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (363 votes). Check out past polls.