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?