while(<INPUT>) { $n+=/^Algorithm/; last if /^Experiment/ } [download]
In reply to Re: Counting occurances of a pattern in a file by fundflow in thread Counting occurances of a pattern in a file by MadraghRua