in reply to Regex replacement goof
Your regex s/// contains a reference to the string your changing $linkref instead of to the cached regex $re.
$linkref =~ s/($re)/sprintf "%%%02X", ord $1/ge;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex replacement goof
by John M. Dlugosz (Monsignor) on May 07, 2011 at 01:14 UTC |