One way to create an array of files names is to use glob
use warnings; use strict; for my $filename (glob '*.txt') { open my $fh, '<', $filename or die "can not open $filename: $!\n"; while (<$fh>) { # your code } close $fh; }
In reply to Re: Have perl replace a bunch of text in lots of files
by toolic
in thread Have perl replace a bunch of text in lots of files
by symgryph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |