in reply to Extracting Cookies

Have you thought about using CGI::Cookie? Very simple interface.
use CGI::Cookie; my %cookies = fetch CGI::Cookie;
--eric