![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: regex & variable substitutionby neniro (Priest) |
on Jul 11, 2005 at 09:29 UTC ( #473878=note: print w/replies, xml ) | Need Help?? |
s/&([^;]+);?/"&#".exists $lookup{$1} ? $lookup{$1} : $1.";"/e; should work the way you want it?!
In Section
Seekers of Perl Wisdom
|
|