Think about Loose Coupling | |
PerlMonks |
Re^5: Capturing regex from mapby LanX (Saint) |
on Sep 15, 2013 at 18:57 UTC ( [id://1054193]=note: print w/replies, xml ) | Need Help?? |
Well the OP had only one grouping and no /g modifier, such that it does the same thing.
updateFWIW: As already posted my approach to clarify whats happening is map { my @matches = /.../ ; @matches } LIST or even map { my @matches = /.../ } LIST
Cheers Rolf ( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|