in reply to How can I set: $ub->cookie = $ua->cookie ?

Stop creating new cookie jar objects!
my $jar = HTTP::Cookies->new; ... $ua = LWP::UserAgent->new; $ua->cookie_jar($jar); ... $ub = LWP::UserAgent->new; $ub->cookie_jar($jar); ... $uc = LWP::UserAgent->new; $uc->cookie_jar($jar); ...
There. Now they all share the same jar.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: •Re: How can I set: $ub->cookie = $ua->cookie ?
by Anonymous Monk on Aug 22, 2002 at 17:19 UTC
    Thanks Randal, that's it,
    Carl