in reply to Re: hashes filling up with funk
in thread hashes filling up with funk

what's that?? manually??

look at CGI.pm, it will handle all the fuss for you..

not mentioning that the code in itself is a bit ugly and pointless

Update: so it's probably due to the cookie value being escaped, and since you're not using CGI.pm, are you doing this?

$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
on the cookie value to un-escape it??


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Replies are listed 'Best First'.
Re: Re: Re: hashes filling up with funk
by symŽ (Acolyte) on May 01, 2001 at 22:31 UTC
    Heh yea, I know... CGI.pm would replace that code nicely. But I don't have that luxury unfortunately... I am dealing with legacy code at work and even more legacy coders and their petty politics. Hopefully that routine has an error in it so I can pass the buck. ;)
      symŽ wrote:
      CGI.pm would replace that code nicely. But I don't have that luxury unfortunately
      Not true. You mentioned that you have Perl 5.00503. That includes CGI.pm as one of the standard modules. If your fellow programmers cannot appreciate good, solid code that functions better than what currently exists, why are they programmers?

      Side note: Is it just me, or has anyone else noticed that I'm getting a bit "rougher" in my posts?

      Cheers,
      Ovid

      Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.