Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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.

Comment on Re: equivalent code for unless
Select or Download Code

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 contemplating the Monastery: (5)
As of 2015-11-26 12:50 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 (698 votes), past polls