I would like the code above to return a scalar if the value of 'foo' is a scalar and an array ref if it is a multi-valued parameter. Is there a method for this within CGI or do I have to explicitly program the logic?my $value = $q->param('foo');
In reply to CGI.pm: Can param return array ref? by DBX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |