|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Printing the count for regex matchesby Lawliet (Curate) |
| on Mar 10, 2009 at 01:28 UTC ( #749471=note: print w/ replies, xml ) | Need Help?? |
|
Declare @match before the loop (so that it is not overwritten each time), append any matches to @match, and move the print statement outside the while loop. And you didn't even know bears could type.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||