baking cookies

D

Dean A. Hoover

In CGI.pm there is a function for making a cookie
from a scalar, hash, or array. It apparentley does
not support lists of lists, hashes of lists, etc.
Is there existing code that will do that?

Thanks.
Dean
 
P

Paul Lalli

Dean said:
In CGI.pm there is a function for making a cookie
from a scalar, hash, or array.
It apparentley does
not support lists of lists, hashes of lists, etc.

There's no such thing as a list of lists, or a hash of lists. There
are lists of array references, and hashes of array references, however.
Is there existing code that will do that?

To my knowledge, what you're looking for doesn't quite make sense. A
cookie can have one value, or a series of values. A series of series
of values is something altogether different.

Perhaps you should look into saving your complex data structure as one
large string? Have a look at the Storable module on CPAN.

Paul Lalli
 
D

Damian James

In CGI.pm there is a function for making a cookie
from a scalar, hash, or array. It apparentley does
not support lists of lists, hashes of lists, etc.
Is there existing code that will do that?

Look at Data::Dumper.

--Damian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,074
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top