in reply to -E behavior with stdin script
Note -E doesn't turn on strict, AFAICT its equivalent is -Mfeature=:all.
Update: Sorry, that's not quite right - :all also enables experimental features and features that were removed from feature bundles of later versions, like array_base. I showed a slightly hackish workaround here.
Update 2: Here's an improved version that gives exactly the same result as the -E switch:
use Config; use feature ":$Config{PERL_REVISION}.$Config{PERL_VERSION}";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: -E behavior with stdin script
by almr (Sexton) on Sep 05, 2021 at 09:28 UTC | |
by NERDVANA (Deacon) on Sep 05, 2021 at 13:03 UTC | |
by haukex (Archbishop) on Sep 05, 2021 at 13:53 UTC |
In Section
Seekers of Perl Wisdom