my $cookie_object=cookie(-name => 'cookiename', -value => {key1 => val1, key2 => val2, key3 => val3}, -domain => '.site1.com, .site2.com' ); print "Set-Cookie: $cookie_object\n";