my $mech = WWW::Mechanize::Firefox->new(launch => 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe', autoclose => 0, autodie => 1 ); $mech->get('https://example.com'); my $jar = $mech->cookies(); print Dumper($jar);