in reply to HTTP POST & Cookie
$ua = LWP::UserAgent->new(cookie_jar => $cookie_jar_name);
LWP::UserAgent has much more on the subject of setting up a cookie jar.