Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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


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 d:\tmp>

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

    please note that 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?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2022-09-24 22:45 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (116 votes). Check out past polls.