in reply to Saving HTTP::Cookies into Netscape format using bless/re-bless
Assuming $jar is your original cookie jar, you can just do:
require HTTP::Cookies::Netscape; $jar->HTTP::Cookies::Netscape::save("mycookies.txt");
No need to rebless. It could cause problems if save calls helper methods on $self which aren't defined in the parent class. But reblessing also could cause problems, so shruggles.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Saving HTTP::Cookies into Netscape format using bless/re-bless
by bliako (Monsignor) on May 19, 2021 at 07:30 UTC | |
by tobyink (Canon) on May 20, 2021 at 08:57 UTC | |
by bliako (Monsignor) on May 20, 2021 at 19:57 UTC |
In Section
Meditations