Subject: | autodie weakens strict pragma |
autodie seems to affect how the 'strict' pragma is applied to scalars.
I'd expect that running the following two command would have exactly
the same output:
perl -Mstrict -E 'say $opendir'
perl -Mautodie -Mstrict -E 'say $opendir'
Instead, the first aborts with the expected 'global variable $opendir
requires explicit package name' error, but the second continues as if I
had written 'our $opendir' in there.
The effect is limited to autodie replacements. If the command was 'say
$something', the 'explicit package name' error occurs. Also, this
following statement generates the 'explicit package name' error:
perl -Mautodie=:dbm -Mstrict -E 'say $opendir'