Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: return from eval

by MarkM (Curate)
on Jan 22, 2003 at 22:42 UTC ( [id://229150]=note: print w/replies, xml ) Need Help??


in reply to return from eval

If you are using eval{} as a try, it is not a long stretch to consider using "if ($@ =~ /^RETURN/) {" as a catch, and return from there.

Use of eval{} as 'try' is more of a convenience than a specifically designed language construct. Perl never claimed to support 'try' in Perl 5.x.

Log In?
Username:
Password:

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

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

    No recent polls found