Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: if variants

by demerphq (Chancellor)
on Oct 19, 2004 at 19:27 UTC ( #400642=note: print w/replies, xml ) Need Help??


in reply to if variants

Since I havent seen this explicitly in your post i thought i should add that in many respects "if" is the same as "and".

$foo==7 and $foo++;

Likwise "or" is similar to "unless"

$foo==7 or $foo++;

---
demerphq

    First they ignore you, then they laugh at you, then they fight you, then you win.
    -- Gandhi

    Flux8


Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://400642]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2016-12-09 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.