in reply to Re^6: Try::Tiny and -E
in thread Try::Tiny and -E
Try::Tiny or others could do this too, if they come second.
From feature_enabled($feature, $depth)
package MyStandardEnforcer; use feature (); use Carp "croak"; sub import { croak "disable indirect!" if feature::feature_enabled("indirect"); }
And yes, the implementation of feature_enabled() is in pure Perl.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Try::Tiny and -E
by ikegami (Patriarch) on Dec 30, 2025 at 00:04 UTC | |
by LanX (Saint) on Dec 30, 2025 at 03:17 UTC | |
by ikegami (Patriarch) on Dec 30, 2025 at 05:01 UTC | |
by LanX (Saint) on Dec 30, 2025 at 11:24 UTC | |
by ikegami (Patriarch) on Jan 02, 2026 at 09:36 UTC | |
|