in reply to Re: Re: PayPal Advice Sought
in thread PayPal Advice Sought

My version (2.752) of CGI.pm's unescape uses chr instead of pack, by the way:
$todecode =~ s/%([0-9a-fA-F]{2})/chr hex($1)/ge;
I wonder if it's faster...
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Replies are listed 'Best First'.
Re: Re: Re: Re: PayPal Advice Sought
by John M. Dlugosz (Monsignor) on Jul 08, 2001 at 02:20 UTC
    I found differences re UTF-8 strings, so maybe it was changed because using pack broke when characters were longer than one byte. That shouldn't affect your specific example because you know they are hex digits, but maybe he got rid of packing altogether throughout his code.

    —John