my $cookie_name = "whatever the cookie name is...."; my %cookie_hash = (map { split /=/, $_ } $q->cookie('$cookie_name'));