http://qs321.pair.com?node_id=11136456


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}";