Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: My AUTOLOAD doesn't work in newer Perls. How to fix?

by jettero (Monsignor)
on May 17, 2011 at 09:36 UTC ( [id://905229]=note: print w/replies, xml ) Need Help??


in reply to My AUTOLOAD doesn't work in newer Perls. How to fix?

It says you can't goto from an eval block. Seems the AUTOLOAD is working, but you'll need a different control flow since you can't goto from an eval.
  • Comment on Re: My AUTOLOAD doesn't work in newer Perls. How to fix?

Replies are listed 'Best First'.
Re^2: My AUTOLOAD doesn't work in newer Perls. How to fix?
by John M. Dlugosz (Monsignor) on May 17, 2011 at 09:39 UTC
    That's what I said.

    How do I trap errors produced by a construct that is not allowed in an eval block?

      You call the routine normally, instead of using goto.

      Think a bit about it: the goto SUBREF thing replaces the current call frame. How could it still keep the exception handler of old call frame?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-18 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found