Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi
Yesterday I needed a Perl one-liner ( -e ) to loop over ( -n ) several subtitle files glob*.srt to find those which are in sync with the video I had. Hence I needed paragraph mode ( -00 ) to see the timestamps
trouble is cmd.exe doesn't do *glob expansion, and my git-bash didn't like the paragraph mode, most probably because of different understandings of line endings I ended up with something like this perl -00nE"BEGIN{@ARGV=<@ARGV>}say qq{=== $ARGV ===\n$_} if /ditto/i" *Filenames* but the BEGIN block is a bit ugly. Any more elegant way to do this? One generic workaround could be a special module wglob to do the BEGIN part with perl -Mwglob but I'd like to ask the community first...
Cheers Rolf In reply to One liner with globs on Windows to parse .srt files by LanX
|
|