Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Discipulus (Canon)
on May 14, 2021 at 14:15 UTC ( [id://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 (Saint) 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?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-28 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found