You probably meant
$title =~ s/%([0-9a-fA-F][0-9a-fA-F])/pack("c",hex($1))/ge;
But you'd almost certainly be better off with the uri_unescape function from URI::Escape.
--"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: More regex's with hex's
by davorg
in thread More regex's with hex's
by spiderbo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |