in reply to Re^2: Matching against list of patterns
in thread Matching against list of patterns
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Matching against list of patterns
by Eyck (Priest) on Sep 17, 2004 at 09:50 UTC |
In Section
Seekers of Perl Wisdom