Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: in search of a more elegant if then else

by Anonymous Monk
on Feb 18, 2010 at 23:52 UTC ( [id://824059]=note: print w/replies, xml ) Need Help??


in reply to in search of a more elegant if then else

It is not clumsy
  • Comment on Re: in search of a more elegant if then else

Replies are listed 'Best First'.
Re^2: in search of a more elegant if then else
by Anonymous Monk on Feb 18, 2010 at 23:59 UTC
    it may be correct syntax, but putting down 5 lines for something that can (now i've read comments) be done in one line seems a bit more elegant to me, and makes the code look a bit nicer.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-23 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found