If you are using eval{} as a try, it is not a long stretch to consider using "if ($@ =~ /^RETURN/) {" as a catch, and return from there.
Use of eval{} as 'try' is more of a convenience than a specifically designed language construct. Perl never claimed to support 'try' in Perl 5.x.
In reply to Re: return from eval
by MarkM
in thread return from eval
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |