The snippet fails badly if a poorly encoded URL is provided.
$value =~ s/%([A-Fa-f0-9]{2})/pack("c",hex($1))/ge;
is much more resilliant. Actually, you should be using CGI instead of home grown alternatives to avoid bugs and problems like this one.
In reply to Re: Updating scripts from late 90's
by ikegami
in thread Updating scripts from late 90's
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |