I'm amazed that CGI.pm does this, but you're right. What's bad is
that this style doesn't work as expected:
p $r-param(foo=[qw(a b c)])
Lincoln
Tatsuhiko Miyagawa writes:
On Thu, 1 Nov 2001 09:58:39 -
Matt Sergeant [EMAIL PROTECTED] wrote:
I guess so. Your above is
No, it certainly isn't clean. Neither is Perl's API!
Lincoln
Matt Sergeant writes:
-Original Message-
From: Tatsuhiko Miyagawa [mailto:[EMAIL PROTECTED]]
On Thu, 1 Nov 2001 09:58:39 -
Matt Sergeant [EMAIL PROTECTED] wrote:
I guess so. Your above is
On Tue, 6 Nov 2001 15:52:20 -0500
Lincoln Stein [EMAIL PROTECTED] wrote:
I'm amazed that CGI.pm does this, but you're right. What's bad is
that this style doesn't work as expected:
p $r-param(foo=[qw(a b c)])
That's it! Any plan to fix this *strange* behaviour?
--
Tatsuhiko Miyagawa
-Original Message-
From: Tatsuhiko Miyagawa [mailto:[EMAIL PROTECTED]]
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');
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'); #