There is a full implementation of try-catch block using perl filters
Source filters are unfortunately quite dangerous, they are very prone to making code extremely brittle (Update: for example, Switch was removed from the Perl core for that reason, see e.g. Perl Code Changes Behavior if Two Subroutine definitions are swapped). Note that there is currently development underway to add try/catch to Perl natively - see Adding a try/catch syntax to Perl and Progress on try/catch.
In reply to Re^5: Perl try { } catch(e) { }
by haukex
in thread Perl try { } catch(e) { }
by Superfox il Volpone
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |