Is it possible for a Perl subroutine to force its caller to return?

后端 未结 5 461
一生所求
一生所求 2020-12-20 20:09

If I have Perl module like

 package X;

and an object like

 my $x = X->new ();

Inside X.pm, I

5条回答
  •  悲哀的现实
    2020-12-20 20:54

    You could use Continuation::Escape. This would basically allow you to pass the "point-of-return" on to the error handler.

提交回复
热议问题