Just another Perl shrine | |
PerlMonks |
Re (tilly) 2: hashes in regexesby tilly (Archbishop) |
on Mar 29, 2001 at 19:32 UTC ( [id://68109]=note: print w/replies, xml ) | Need Help?? |
You might want to throw in a reverse sort there. It was
not in the spec, but it may happen that someone will want
to do one substitution on "foo" and another on "foobar".
Since Perl's REs are DFAs rather than NFAs this is not going
to work unless in the RE you see foobar before foo.,,
In Section
Seekers of Perl Wisdom
|
|