Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^6: One liner with globs on Windows to parse .srt files

by LanX (Sage)
on May 14, 2021 at 12:32 UTC ( #11132587=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11132587]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (None)
    As of 2021-10-16 16:14 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      My first memorable Perl project was:







      Results (69 votes). Check out past polls.

      Notices?