And if you do then you get:
C:>perl -pe"s/^URL=|.*//s" *.url
Can't open *.url: Invalid argument.
More to the point the real error is in assuming that the command line processor in windows will expand wild cards, it of course won't---that trick is a unix thing, useful, but unix...
--hsm
"Never try to teach a pig to sing...it wastes your time and it annoys the pig."
| [reply] [d/l] |
You have to prefix oneliners with BEGIN{@ARGV=map glob,@ARGV} on Windows. I thought it didn't need pointing out that the Windows commandline and shell design is braindead.
Makeshifts last the longest.
| [reply] [d/l] |
You know, windows is so brain dead, that, that would make a good command line switch. Or maybe just build the equivalent into perl.exe for the poorer country cousins forced to make do.
Update: The sum of this thread works nicely: perl -pe"BEGIN{@ARGV=map glob,@ARGV}s/^URL=|.*//s" *.url
--hsm
"Never try to teach a pig to sing...it wastes your time and it annoys the pig."
| [reply] [d/l] |