in reply to Re^3: Capturing regex from map
in thread Capturing regex from map
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Capturing regex from map
by BrowserUk (Patriarch) on Sep 13, 2013 at 17:56 UTC | |
by LanX (Saint) on Sep 13, 2013 at 18:04 UTC |