"be consistent" | |
PerlMonks |
Re: Re: Question of variable interpolation in regexby thelenm (Vicar) |
on Nov 15, 2002 at 16:56 UTC ( [id://213202]=note: print w/replies, xml ) | Need Help?? |
Actually, the left-hand side of the substitution (the regex) is the part that is only compiled once. The right-hand side will change as $string changes. Try this:
-- Mike --
In Section
Seekers of Perl Wisdom
|
|