Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: PayPal Advice Sought

by MeowChow (Vicar)
on Jul 08, 2001 at 01:11 UTC ( [id://94769]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://94769]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-24 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found