Cheers;while (<INPUT>) { $n++ if /^Algorithm/; last if /^Experiment Name/; } close INPUT;
Nat
In reply to Re: Counting occurances of a pattern in a file
by gnat
in thread Counting occurances of a pattern in a file
by MadraghRua
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |