http://www.perlmonks.org?node_id=11132587


in reply to Re^5: One liner with globs on Windows to parse .srt files
in thread One liner with globs on Windows to parse .srt files

> Note unfortunately it doesn't end up inside the BEGIN:

not with version pragmas, but anything which allows import-list will also execute code inside

d:\>perl "-MData::Dumper print ${^GLOBAL_PHASE}" -e1 START d:\>

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^7: One liner with globs on Windows to parse .srt files
by haukex (Bishop) on May 14, 2021 at 13:15 UTC

    Good point, thanks! As for your other reply:

    PERL5OPT doesn't allow -e and this most probably for security reasons.

    I kind of doubt that's the case, since it does allow -M and -I, and those two can be used to execute arbitrary code from anywhere in the filesystem. I suspect the reason might be that -enp etc. would break things when accidentally used in a global PERL5OPT.