|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re^2: Replace strings in multiple filesby Tanktalus (Canon) |
| on Nov 13, 2012 at 16:16 UTC ( #1003654=note: print w/ replies, xml ) | Need Help?? |
|
Why not? Well, a few reasons, I suppose. First off, not all OS's do filename expansion. CMD.EXE doesn't, for example, at least not last time I tried. Second, maybe the filename is coming as input from an input file. Putting filenames as a command line parameter isn't always a good option. Maybe it's being run automatically through a web interface without any use of a shell. Third, maybe the filenames are remote files, files in another directory, or any number of other reasons. The answer to all of the above is glob (assuming you don't need to recurse subdirs).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||