Something like this, for example (UNTESTED):
my $dir = '/some/path/to/files'; local @ARGV = glob "$dir/*"; # get all files in $dir local $^I = '.bak'; # modify files "in-place" # non-empty string required for Windows while ( <> ) { # loop through all files s/regular expression/replacement text/g; # make modification print; # save the result }
In reply to Re: reading content from multiple files
by jwkrahn
in thread reading content from multiple files
by manishrathi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |