in reply to How can I get and set cookies?

Another way to do it, if you don't want to be getting your hands in the dough is to use cookie-lib.pl. It's concept is based on cgi-lib.pl and works very well when you want to do a "quick n dirty".
Check it out: http://cgi-lib.stanford.edu/cgi-lib

HTH!