in reply to CGI cookie turns array ref into string

And here is the code that tries to retrieve the array

There is no array, cookies are key/value pairs.

  • Comment on Re: CGI cookie turns array ref into string

Replies are listed 'Best First'.
Re^2: CGI cookie turns array ref into string
by dsheroh (Monsignor) on Apr 25, 2010 at 12:51 UTC
    The issue isn't that cookies are key/value pairs. Hashes are also key/value pairs, but the value in that pair can be a reference (or any other arbitrary scalar).

    The issue is that cookies only accept strings as their values.