in reply to CGI::Cookie LWP::UserAgent...
You will need to add the cookies to the HTTP::Cookies cookie jar for LWP. Very much like WWW::Mechanize does when it receives a response, you will have to mirror that behaviour within your script.