Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: if/else syntax

by dreadpiratepeter (Priest)
on Jun 26, 2009 at 15:51 UTC ( [id://775096]=note: print w/replies, xml ) Need Help??


in reply to Re^2: if/else syntax
in thread if/else syntax

what you are looking for is:
if ($cond==1) { do_good(); } else { do_bad(); }


-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 23:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found