in reply to How do I use HTTP Cookies?

Have you looked at CGI::Cookie or HTTP::Cookies::Microsoft.
I also found this here on PM (if you don't wan't to/can't use CGI) but I would stick to CGI::Cookie.

update: Forgot to add the tutorial link I used a while back, Have a look at this tutorial, this should better answer your question.