"be consistent" | |
PerlMonks |
Re: Re: Re: Re: pattern matching on a single lineby John M. Dlugosz (Monsignor) |
on Jun 05, 2001 at 23:34 UTC ( [id://85967]=note: print w/replies, xml ) | Need Help?? |
He's using map to collect the results into one list. Like foreach, it will iterate over the list specified at the right. But it will also collect together the results into one list. The regex content will return a list of all matches made (thanks to /g), and map will nicely concatenate all those together into one big list.
In Section
Seekers of Perl Wisdom
|
|