You can use HTTP::Cookies::Mozilla under the same terms as Perl itself.