in reply to More regex's with hex's

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.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re: Re: More regex's with hex's
by spiderbo (Sexton) on Apr 24, 2003 at 15:49 UTC
    Many thanks, worked a charm without having to install additional modules.