You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$cookie_jar->save( $file )
This method file saves the state of the $cookie_jar to a file. The
state can then be restored later using the load() method. If a
filename is not specified we will use the name specified during
construction. If the attribute ignore_discard is set, then we will
even save cookies that are marked to be discarded.
mention if this is exactly the same as just
open(my $ckf, ">", $file);
print $ckf $cookie_jar->as_string;
close $ckf;
or if it updates the name used during construction.
I.e.,
$cookie_jar = HTTP::Cookies->new(
file => "$ENV{'HOME'}/lwp_cookies.dat",
);
$cookie_jar->save( ); #Saves to "$ENV{'HOME'}/lwp_cookies.dat"
$cookie_jar->save( $file ) #Saves to $file
$cookie_jar->save( ); #man page not clear about now where this will save to
The text was updated successfully, but these errors were encountered:
On man page at
mention if this is exactly the same as just
or if it updates the name used during construction.
I.e.,
The text was updated successfully, but these errors were encountered: