in reply to Re: CGI modules?
in thread CGI modules?

That's a pretty broken cookie parser. See the code in CGI::Cookie to see the other things that you have to handle. It's much easier to use a module that handles it all correctly than type more and get less. :)

--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review

Replies are listed 'Best First'.
Re^3: CGI modules?
by Adrade (Pilgrim) on Jan 29, 2006 at 00:51 UTC
    I agree that its most definately not for complicated usage... it was put in place in a situation in which I didnt have to handle anything beyond one key that was being passed in... its given as a rudimentary example, and something that could suffice (as it does for me) in situations that require very basic parsing. I did notice the simplicity of %cookies = parse CGI::Cookie($ENV{COOKIE}); from CGI::Cookie, which seems quite lovely indeed. For whatever reason, I have a tendency to limit loading in modules when I don't really need all their features, and given the use for which this was constructed, I still probably wouldn't change it, however duely noting your very pleasant alternative for future applications.

    Thanks,
      -Adam

    --
    By a scallop's forelocks!