in reply to Pass cookies from one CGI to another

If you use LWP::UserAgent you can use HTTP::Cookies to create a cookie jar, like:
use HTTP::Cookies; $cookie_jar = HTTP::Cookies->new;
Then set this cookie_jar to be used in the user agent.
$ua->cookie_jar([$cookie_jar])
You can extract and add cookie like:
$cookie_jar->extract_cookies($response); $cookie_jar->set_cookie($version, $key, $val, $path, $domain, $port, $ +path_spec, $secure, $maxage, $discard, \%rest)
Hope that helps..