I now need it to get a running total of ";" occurances while skipping the "; End" occurances within the files. Can I continue to use the tr/// operator or should I switch to the sub? Thanks so much.use strict; my @files = qw(FILES); my $semi_count; foreach my $file (@files) { open FILE, $file or die "Can't open $file: $!\n"; $semi_count += tr /;// for <FILE>; close FILE; } print $semi_count;
In reply to Exempting through search by KStowe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |