Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-10-01 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (389 votes), past polls