|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^3: Matching against list of patternsby tachyon (Chancellor) |
| on Sep 16, 2004 at 23:00 UTC ( #391589=note: print w/ replies, xml ) | Need Help?? |
|
Remove the map quotemeta and you can use REs to your hears delight. The only issue is then extra | in those REs. My example captures the physical match. It is a simple task to map that back to the pattern (or patterns) that match that if required. The benchmark at Re^2: Matching against list of patterns shows a full order of magnitude speed improvement so the optimiser does OK. cheers tachyon
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||