in reply to Counting occurances of a pattern in a file
while (<INPUT>) { $n++ if /^Algorithm/; last if /^Experiment Name/; } close INPUT; [download]
Nat