The stupid question is the question not asked | |
PerlMonks |
Re: Re: using a hash to do substitution?by Masem (Monsignor) |
on Jun 14, 2001 at 05:47 UTC ( [id://88274]=note: print w/replies, xml ) | Need Help?? |
I'd change this subtly (unless you only care to match whole words only) to:
That is, the longer keys will appear first in the alternatives list and thus they will be matched first.
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
In Section
Seekers of Perl Wisdom
|
|