good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Capturing regex from mapby LanX (Saint) |
on Sep 13, 2013 at 17:45 UTC ( [id://1053975]=note: print w/replies, xml ) | Need Help?? |
> It is concise and to my eyes clear. well, as you can see from some answers it's not clear for everybody. you are using the fact that 'm//' in list context returns a list of the grouped matches (if any). (w/o grouping it returns 1 for true matches) If you are using this idiom very often you might want to document it for other maintainers...
Cheers Rolf ( addicted to the Perl Programming Language)
In Section
Seekers of Perl Wisdom
|
|