laziness, impatience, and hubris | |
PerlMonks |
Re^2: build regexp on a list of patternsby ysth (Canon) |
on Apr 06, 2005 at 09:08 UTC ( [id://445218]=note: print w/replies, xml ) | Need Help?? |
In this case, it would appear that they are all the same length, but in general, the list should be sorted longest-first, so that @list=qw/foo bar foobar/ will ever match foobar.
In Section
Seekers of Perl Wisdom
|
|