Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^5: Looking for a cleaner regex ( trie since 5.10 ! )by LanX (Saint) |
on Dec 08, 2017 at 15:42 UTC ( [id://1205177]=note: print w/replies, xml ) | Need Help?? |
Especially since you can keep the alternatives inside an qw/ / or an @array and simply join "|", for the regex string. Maintainability at its best. See also Re: How to tokenize string by custom dictionary? (+code) for an example with a %hash .
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|