in reply to Re^3: Try::Tiny and -E
in thread Try::Tiny and -E
Indeed. In this special case it's actually too early to check from within Try::Tiny.
I checked with feature::feature_enabled("try"); and feature::features_enabled($LEVEL); for various levels.
But the case of perl -E'use Try::Tiny; try {1/0}' could be checked, and from what I see is Try::Tiny not attempting to catch this.
So haarg's reply to the ticket is not fully correct.
On another note: I'm wondering, shouldn't Perl warn if a built-in is clashing with an (exported) sub???
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
Ticket updated.
|
|---|