in reply to How do I convert this wget to perl?
See HTTP::Cookies and the cookie_jar parameter to LWP::UserAgent