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

Re^3: Assignment to a value only if it is defined

by ikegami (Patriarch)
on Jan 20, 2010 at 19:02 UTC ( [id://818537]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Assignment to a value only if it is defined
in thread Assignment to a value only if it is defined

{local $_ = $bar; $foo = $_ if defined $_;}

$foo = $_ for grep defined, expensive();

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found