in reply to Re: html2code.pl
in thread html2code.pl
Nice, but why not use $1 instead, and thus avoid the "evil variable" $& ?
s/(.)/sprintf('&#%03d;', ord($1))/ge;
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: html2code.pl
by Roy Johnson (Monsignor) on Aug 21, 2005 at 12:15 UTC |