|
|
| There's more than one way to do things | |
| PerlMonks |
Re^2: s///g and capturing all matchesby Random_Walk (Parson) |
| on Dec 16, 2011 at 09:59 UTC ( #943926=note: print w/ replies, xml ) | Need Help?? |
|
Hi Jethro, and the answer to life, the universe and everything is 42 ;) I was wondering why the implementations differ, as well as seeking an ellegant way to get the behaviour I wanted. If s///; returned a list of the items sub'd out then it would be easy enough to use that in scalar contect to have the number. Felt rather un-Perlish to miss out on potential utility. Cheers,
Pereant, qui ante nos nostra dixerunt!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||