Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by Discipulus (Abbot)
on May 14, 2021 at 14:15 UTC ( #11132592=note: print w/replies, xml ) Need Help??


in reply to One liner with globs on Windows to parse .srt files

Hello LanX,

> Any more elegant way to do this?

Sure! What more elengant than have a whole perl distro dedicated to this? :)

Using MinGW to build perl on windows forcing it to expand * into glob in cmd.exe

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: One liner with globs on Windows to parse .srt files
by LanX (Sage) on May 14, 2021 at 14:57 UTC
    Thanks, but this looks easier to me

    d:\tmp>set PERL5OPT=-MWin32::Autoglob d:\tmp>perl -E"say qq(@ARGV)" t_*.pl t_dump_folding.pl t_export_var.pl t_unicode.pl d:\tmp>

    and has the benefit that I can localize the effect to terminals which have this option activated.

    please note that sitecustomize.pl could be used for global settings of an installation, without the need to recompile Perl.

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2021-09-22 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?