Hi list,

I am working on a catalyst project and would have been attempting to create
a user page (form) that allows someone to create an sql query to hammer a
local DB (all secure-ish - maybe).  I have used a javascript function to
return the post options and used the catalyst method
$c->request->parameters() to get at the form information.

The information is contained within a hash (ref to a hash) and the values
are either scalar or arrays.  What I would like to know is if there is a way
of testing the type of a variable - as with python:

>>> foo = ["a", "b", "c"]
>>> type(foo)
<type 'list'>

or if there is a way to convert the scalars into arrays - allowing me to
skip the check.  I have tried to use a JSON hash in the javascript but this
has not worked - I also *assume* that I would be presented with the same
problem - parsing that hash of mixed variables.

I am sorry if this is a stupid question.

Thanks

Reply via email to