in reply to WWW::Mechanize issue

forgive me if i'm wrong but i would of thought...
my $mech = WWW::Mechanize->new(); $mech->cookie_jar( {} );
is the same as...
my $mech = WWW::Mechanize->new( cookie_jar => undef );

Replies are listed 'Best First'.
Re^2: WWW::Mechanize issue
by AK108 (Friar) on Nov 18, 2006 at 22:42 UTC
    No. undef accepts no cookies, while a hashref accepts cookies in an in-memory cookie jar. This is explained in WWW::Mechanize's documentation (the section where new() is explained).
Re^2: WWW::Mechanize issue
by Anonymous Monk on Nov 17, 2006 at 17:31 UTC
    It is the same