This may work (UNTESTED):
my @files = ( $rrconfig::locodata, $rrconfig::availlocodata, # add other file names here ); { local @ARGV = @files; local $^I = '.back'; # change '.back' to '' if your system supports it while ( <> ) { next if /^[^:]*:$delroad:$delnumber:/; print; } }
In reply to Re: Delete Lines Across Multiple Files
by jwkrahn
in thread Delete Lines Across Multiple Files
by PilotinControl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |