You *could* also do this:
perl -MTry::Tiny -E 'Try::Tiny::try { 1 / 0 } Try::Tiny::catch { print $_ };'
which (as expected) generates:
Illegal division by zero at -E line 1.
Hope that helps.
In reply to Re^4: Try::Tiny and -E
by atcroft
in thread Try::Tiny and -E
by 1nickt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |