Hi eveyone, i need a tip.
I am programming a perl page using cgi.
Now, i have a nested array (let's say @domains) and i know that each value can be accessed by $domains[x][y] and so on.
I want to pass this array by a hidden parameter like :
...
hidden(-name=>'domains',-value=>[@domains],-override=>1),
...
Then i read it with:
...
@domini=param('domini');
...
The problem is: the above example works with one dimensional arrays. If @domains is multi dimensional and i try to access to the fields of the parameter each field is empty.
The fields exist (i can test it with a foreach) but are empty.
What am i doing wrong? How should i change "-value=>[@domains]" ? Cause i am sure the problem is there.
Thanks a lot
I am programming a perl page using cgi.
Now, i have a nested array (let's say @domains) and i know that each value can be accessed by $domains[x][y] and so on.
I want to pass this array by a hidden parameter like :
...
hidden(-name=>'domains',-value=>[@domains],-override=>1),
...
Then i read it with:
...
@domini=param('domini');
...
The problem is: the above example works with one dimensional arrays. If @domains is multi dimensional and i try to access to the fields of the parameter each field is empty.
The fields exist (i can test it with a foreach) but are empty.
What am i doing wrong? How should i change "-value=>[@domains]" ? Cause i am sure the problem is there.
Thanks a lot