Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by Zaxo (Archbishop)
on Aug 09, 2005 at 19:35 UTC ( [id://482390]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $send_now_button =
        $auth{'SEND'} && $status==1 && $approved && !$send_now ?
        qq( ...blah blah ...) : '';
    
  2. or download this
    my $send_now_button;
    if ( !$auth{'SEND'} ) {
        $send_now_button = '';
    ...
            }
        }
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found