Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Code blocks with ternary operator or trailing conditionals

by puterboy (Scribe)
on Feb 09, 2014 at 15:51 UTC ( [id://1074134]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $error = "Bad result", next unless defined $result;
    
  2. or download this
    do{push @results, $item; next} if defined $item;
    
  3. or download this
    if(defined $item){push @results, $item; next}
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-23 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found