in reply to Re^12: Try::Tiny and -E
in thread Try::Tiny and -E
see feature*_enabled checks demonstrated in Re^5: Try::Tiny and -E and Re^7: Try::Tiny and -E
Try::Tiny can check either inside import() or die/skip right at the beginning of the module.
NB: you can provide a caller level to this routines.
> If you perform the check as these wrong times,
What should be the benefit of Try::Tiny exporting it's subs while feature-try is enabled?
In theory you could no feature "try" later in a sub-scope to re-enable those exports, but that's a very convoluted edge-case.
And I was mostly talking about "warning", warnings can be disabled if this convoluted edge-case is warranted.
Looking forward to your counter-examples!
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^14: Try::Tiny and -E
by ikegami (Patriarch) on Jan 02, 2026 at 17:07 UTC | |
by LanX (Saint) on Jan 02, 2026 at 20:48 UTC | |
by ikegami (Patriarch) on Jan 03, 2026 at 16:52 UTC | |
by LanX (Saint) on Jan 06, 2026 at 21:20 UTC | |
by ikegami (Patriarch) on Jan 07, 2026 at 15:20 UTC | |
| |
by LanX (Saint) on Jan 07, 2026 at 01:49 UTC | |
by LanX (Saint) on Jan 02, 2026 at 20:17 UTC | |
by ikegami (Patriarch) on Jan 03, 2026 at 16:57 UTC | |
by LanX (Saint) on Jan 06, 2026 at 21:51 UTC | |
by ikegami (Patriarch) on Jan 08, 2026 at 16:35 UTC | |
|