Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Coding styles using if/else

by zer (Deacon)
on Apr 05, 2007 at 22:51 UTC ( [id://608567]=note: print w/replies, xml ) Need Help??


in reply to Coding styles using if/else

just dont get too carried away. Ternary operators turn bad really quickly
you should take a look at perl best practices, it may say something on this
$ARGV[0]?print "Thank you, $ARGV[0]. Your submission is complete.":do{ +print "Sorry, name can't be empty";exit;};

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-24 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found