Im using CGI.pm to parse some forms and some form fields have the same name with different values. $IN->param() returns multiple values all at once...eg...
Ticking 3 checkboxes with values 1 2 3 would return 123
Now, I have a routine that converts all form fields into a hashref for ease of use ..eg...
$form = { Field => 'Value' };
....but how would I get the code to create something like:
$form = { Field => ['Value1','Value2'] };
....if multiple values are returned? ref won't work.
I need something like $IN->get_hash used in GT's CGI.pm - does anyone know if the original CGI.pm has a build in routine to do this?
Ticking 3 checkboxes with values 1 2 3 would return 123
Now, I have a routine that converts all form fields into a hashref for ease of use ..eg...
$form = { Field => 'Value' };
....but how would I get the code to create something like:
$form = { Field => ['Value1','Value2'] };
....if multiple values are returned? ref won't work.
I need something like $IN->get_hash used in GT's CGI.pm - does anyone know if the original CGI.pm has a build in routine to do this?