in reply to CGI::cookie query
something like:
as long as you don't have a really large hash, or one that contains \0 in it, that oughtta work fine and solve your problem$cookie = join "\0", %hash; $cookie =~ s/(\W)/'%'.sprintf("%02lx",ord($1))/ge; #... print cookie ... #read cookie back to hash... $cookie =~ s/%([a-fA-F\d][a-fA-F\d])/chr(hex($1))/ge; %hash = split "\0", $cookie;
|
|---|