Problems? Is your data what you think it is? | |
PerlMonks |
Re: reading and writing a CGI cookie in the same pageby dws (Chancellor) |
on Feb 21, 2003 at 02:52 UTC ( [id://237322]=note: print w/replies, xml ) | Need Help?? |
You've already gotten an answer to the question you posed, so I'll add a minor coding suggestion.
You can eliminate a conditional by writing If @new_cookies is empty, no cookies are added. This approach gives the flexibility of adding additonal cookies without having to modify existing code.
In Section
Seekers of Perl Wisdom
|
|