use LWP::UserAgent; use HTTP::Cookies; # not actually required as LWP uses it, # so you don't need to use it again.... $agent = LWP::UserAgent->new; $agent->cookie_jar( {} ); # temporary cookie jar $agent->agent( [snip]