Another alternative would be the little-used trick of assigning to @ARGV. You can then read each line of all of the files in turn using the diamond operator, <>.
@ARGV = qw(testhere.pl closure.pl hello.pl); my $semi_count; $semi_count += tr/;// while <>;
Update: Less patronising, more informative.
--Perl Training in the UK <http://www.iterative-software.com>
In reply to Re: Re: Counting within numerous files?
by davorg
in thread Counting within numerous files?
by KStowe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |