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

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2015-07-04 17:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls