Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Ternary operators: a hinderance, not a help

by graff (Chancellor)
on Aug 10, 2005 at 01:31 UTC ( [id://482483]=note: print w/replies, xml ) Need Help??


in reply to Re: Ternary operators: a hinderance, not a help
in thread Ternary operators: a hinderance, not a help

Isn't it fun to know people like that? Such a trip!

I wouldn't mind "wasting" a line on a default assignment in a case like that (and I often do it this way):

my $send_now_button = ''; # that's the default value; $send_now_button = qq( ...blah blah ... ) if ( $auth{SEND} and status == 1 and $approved and ! $send_now );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-03-29 14:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found