Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: return if defined

by tobyink (Canon)
on Dec 20, 2012 at 12:59 UTC ( [id://1009739]=note: print w/replies, xml ) Need Help??


in reply to return if defined

Another possibility...

use PerlX::Perform; use return::thence; sub my_find_or_create { # ... perform { return::thence $_ } wherever $self->find_by_something(@arg +s); # ... }
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1009739]
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-25 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found