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 reply to Re^4: Capturing regex from map
by LanX
in thread Capturing regex from map
by trippledubs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |