Unfortunately, on Win32 platforms the shell does not expand wildcards in FILELIST like on Unix platforms, therefore you need to use something like this there:
> perl -MFile::DosGlob -i.bak -pe "BEGIN {@ARGV=glob(join ' ', @ARGV)} + s/foo/bar/g" *.txt *.bak
Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com
In reply to Re: Re: Inplace Editing
by clemburg
in thread Inplace Editing
by tachyon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |