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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Try::Tiny and -E
by CountZero (Bishop) on Jan 05, 2026 at 02:21 UTC | |
by ikegami (Patriarch) on Jan 05, 2026 at 14:50 UTC | |
by CountZero (Bishop) on Jan 06, 2026 at 12:52 UTC | |
by ikegami (Patriarch) on Jan 07, 2026 at 15:33 UTC | |
by CountZero (Bishop) on Jan 08, 2026 at 13:56 UTC | |
by LanX (Saint) on Jan 06, 2026 at 21:14 UTC |