There is some inconsistency between CGI.pm and Apache::Request's
param() method, especially in handling of multivalued parameter.
$q = CGI->new;
$q->param(foo => qw(a b c));
@foo = $q->param('foo'); # ('a', 'b', 'c')
$q->param(bar => [ qw(a b c) ]);
@bar = $q->param('bar'); # (['a', 'b', 'c'])
$r = Apache::Request->new(Apache->request);
$r->param(foo => qw(a b c)); # die with an error
$r->param(bar => [ qw(a b c) ]);
@bar = $r->param('bar'); # ('a', 'b', 'c')
Am I the only one who wants consistency between the two?
CGI.pm 2.78
Apache::Request 0.33
--
Tatsuhiko Miyagawa <[EMAIL PROTECTED]>