|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
(bbfu) Re(4): pattern matching on a single lineby bbfu (Curate) |
| on Jun 05, 2001 at 19:33 UTC ( [id://85965]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
The return value of m/()/g in array context (which map evaluates EXPR in) is the array containing all the matches inside the parentheses, just like in your first reply. The only difference that the map makes is that merlyn is evaluating the m/()/g for every line, while yours only did one line. HTH. bbfu
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||