dmthomas
Recent Actions
-
Commented on Enforcing Simple Standards with One Module
Most of my code runs under a version of current version of perl I've built and loaded with distributions I use. However I have a couple of scripts for bootstrapping which run under the system perl but use quite a...
-
Commented on Adding a ROADMAP section to the POD
For software packages, not just perl distributions, I've long wanted them to include a brief "STATUS & ROADMAP" section STATUS to mention whether * it is stable, near-stable, etc * is under active development * any significant issues/limitations * portability...
Comment Threads
-
Ovid commented on
Enforcing Simple Standards with One Module
Thanks Bill! That's fixed :)
-
Felix Ostmann commented on
Enforcing Simple Standards with One Module
OK, i have some problems with the feature->unimport.
To keep everything complicated here is the setup:
- enabled feature 'try' if perl 5.34 via boilerplate
- old script using Try::Tiny (reason to disable try-feature in scope/file)
- old script may run under 5.32 or 5.34
I can't get something working for both perl versions.
use strict; use warnings; no warnings 'experimental'; # copied from boilerplate module BEGIN { if ($] >= 5.034) { require feature; feature->import('try'); } } # copied from script use Try…
-
Felix Ostmann commented on
Enforcing Simple Standards with One Module
OK, to add some juice:
BEGIN { feature->unimport('try') if $] >= 5.034; }
do the trick (so disable 'try' for the complete file i guess?!)
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.