It works more sanely in Perl 5.18...
In try block We caught Substitute undefined variable
For Perl 5.10-5.16, the easiest fix is:
catch { our $_; # stop lexical $_ from masking global $_ print "We caught $_\n"; }
In reply to Re^3: Yet more Try::Tiny problelms
by tobyink
in thread Yet more Try::Tiny problelms
by dd-b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |