in reply to return from eval
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.
|
|---|