Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: ?: = Obfuscation?

by perrin (Chancellor)
on Dec 01, 2006 at 17:25 UTC ( #587239=note: print w/ replies, xml ) Need Help??


in reply to ?: = Obfuscation?

I only use it in places where it's impossible to use an if/else without breaking things up too much. For example, in a hash assignment:

%hash = ( a => 1, b => ($c ? 'yes' : 'no'), );


Comment on Re: ?: = Obfuscation?
Download Code
Re^2: ?: = Obfuscation?
by qbxk (Friar) on Dec 06, 2006 at 17:56 UTC
    only use it in places where it's impossible to use an if/else without breaking things up too much. For example, in a hash assignment:
    %hash = ( a => 1, b => ($c ? 'yes' : 'no'), );
    seconded

    It's not what you look like, when you're doin' what you’re doin'.
    It's what you’re doin' when you’re doin' what you look like you’re doin'!
         - Charles Wright & the Watts 103rd Street Rhythm Band, Express yourself

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-09-30 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (363 votes), past polls