DBX has asked for the wisdom of the Perl Monks concerning the following question:
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');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ar0n) Re: CGI.pm: Can param return array ref?
by ar0n (Priest) on Jul 13, 2001 at 22:10 UTC | |
|
(tye)Re: CGI.pm: Can param return array ref?
by tye (Sage) on Jul 13, 2001 at 22:20 UTC | |
|
Re: CGI.pm: Can param return array ref?
by gremio (Acolyte) on Jul 13, 2001 at 22:12 UTC | |
|
Re: CGI.pm: Can param return array ref?
by DBX (Pilgrim) on Jul 13, 2001 at 22:29 UTC |