use strict; my $i; while (<DATA>) { my @m = ($_ =~ /formulae/g); $i += @m; } print "Found $i matches\n"; __DATA__ message one message two formulae formulae message threee
In reply to Re: Finding the second line an item appears on
by monktim
in thread Finding the second line an item appears on
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |