open FILE, $filename || "$!";Shouldn't that be:
Or do you actually have a valid file name stored in $!?open FILE, $filename or die $!;
It looks like you want to count the semicolons:
while ( <FILE> ) { $ct += tr/;//; } print $ct;
In reply to Re: Count of split data
by jwkrahn
in thread Count of split data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |