XP is just a number | |
PerlMonks |
Re: Returning N values from a Regexpby thpfft (Chaplain) |
on Nov 13, 2002 at 13:15 UTC ( [id://212580]=note: print w/replies, xml ) | Need Help?? |
m// will return a list of matched (remembered) values if evaluated in list context. Your best bet would just be to gather the matches that way, then count them if you still need to.
would print 'cub' 1000 times, in a comma-delimited list.
In Section
Seekers of Perl Wisdom
|
|