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

Re^2: eval and goto: no worky?

by saintmike (Vicar)
on Nov 10, 2010 at 02:09 UTC ( #870469=note: print w/replies, xml ) Need Help??


in reply to Re: eval and goto: no worky?
in thread eval and goto: no worky?

Actually, my goal was to define a wrapper function that could never die(), even if the inner function did and expose this new interface to the user.

The advantage of using 'goto' would have been that the caller level in the inner function would have been unchanged, but I worked around the Perl limitation of not offering goto &NAME with eval {} by adding some code to adapt the caller level manually at the application level.

Thanks, all!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2020-05-27 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (162 votes). Check out past polls.

    Notices?