Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by jettero (Monsignor)
on May 17, 2011 at 09:36 UTC ( #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?
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
Node Status?
node history
Node Type: note [id://905229]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-12-27 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls