Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Conditional style (if, &&) query

by Toodles (Monk)
on Oct 17, 2001 at 07:28 UTC ( [id://119318]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "Welcome, Mr. President." if from_whitehouse.gov();
    
    instead of 
    
    launch_nukes() if found_file("/bin/laden");
    
  2. or download this
    run_program() unless user_is_idiot();
    
    open_file() or die;
    
  3. or download this
    print "Welcome, Mr. President"
    {
    ...
    #This can be bad. You have to read so many lines, get 
    #confused, then go back and figure out where the block 
    #began. Pain in the patukis.
    
  4. or download this
    if (expr)  {b()}
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-18 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found