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

Re^3: if variants

by ihb (Deacon)
on Oct 21, 2004 at 14:37 UTC ( #401180=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (X) { ... } else { ... }
    
  2. or download this
    if (X) { ... } if (not X) { ... }
    
  3. or download this
    unless (X) { ... } else { ... }
    if (not X) { ... } if (not not X) { ... }
    
  4. or download this
    print ... unless $quiet; # I want to print.
    exit if $done;           # I might want to exit here.
    exit unless $stay;       # I want to exit here, but apparently
                             # something is holding me back.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2014-07-26 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls