![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: Re: Multiple Cookies with CGI::Applicationby sedhed (Scribe) |
on Jul 28, 2002 at 03:16 UTC ( #185801=note: print w/replies, xml ) | Need Help?? |
Well, yes, kinda. Cookies are name=value pairs, when you get down to it. But using CGI.pm, one doesn't really use them directly that way. perldoc CGI says:
In the example, $cookie is actually a hashref, or more accurately, a CGI::Cookie object. Now to pass multiple cookies, you use a ref to an anonymous array, containing the cookie objects you wish to pass. CGI.pm continues:
Hope this clarifies things a little. cheers!
In Section
Seekers of Perl Wisdom
|
|