We don't bite newbies here... much | |
PerlMonks |
Re: regex & variable substitutionby neniro (Priest) |
on Jul 11, 2005 at 09:29 UTC ( [id://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
|
|