in reply to CGI cookie turns array ref into string
You can serialize array before storing it as cookie. If array contains only numbers you can do it like this:
and later restore array using split:my $porder = join ",", @{gen_order(30)};
But generally I would prefer CGI::Session for storing data locally.my @porder = split /,/, $info{'porder'};
|
|---|