my $cookie = '("Name1","Value1","Name2","Value2")'; my %hash = eval $cookie;