Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Goto-labels for exception handling?by LanX (Saint) |
on May 10, 2018 at 01:00 UTC ( [id://1214305]=note: print w/replies, xml ) | Need Help?? |
> Using goto to get out of a subroutine is not something I've seen before that's supported in Perl, the call stacks are properly cleaned. * > a variable behind the scene, The closure variable? For the rest I'm not sure what you are trying to tell me. (Probably not to use exceptions at all for errors? )
Cheers Rolf
*) from goto : it can be used to go almost anywhere else within the dynamic scope, including out of subroutines ( but it's usually better to use some other construct such as last or die.)
In Section
Seekers of Perl Wisdom
|
|