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 M
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 a
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
On Thu, 1 Nov 2001 10:27:05 -
Matt Sergeant <[EMAIL PROTECTED]> wrote:
> > > (foo => qw(a b c)) doesn't do what it looks like it does,
> > and that's a bad
> > > thing.
> >
> > I know! but CGI.pm does it, so what I want is interface
> > consistency. CGI.pm also has a named parameter style
> -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 equivalent to:
> >
> > $r->param(foo => 'a', b => 'c');
> >
> > (foo => qw(a b c)) doesn't do w
On Wed, 31 Oct 2001 13:32:23 -0500
Robert Landrum <[EMAIL PROTECTED]> wrote:
> Try
> $r->param('foo',qw(a b c));
It dies with:
Usage: Apache::Request::param(req, key=NULL, sv=Nullsv) at ...
(version is 0.33)
Thanks.
--
Tatsuhiko Miyagawa <[EMAIL PROTECTED]>
On Thu, 1 Nov 2001 09:58:39 -
Matt Sergeant <[EMAIL PROTECTED]> wrote:
> I guess so. Your above is equivalent to:
>
> $r->param(foo => 'a', b => 'c');
>
> (foo => qw(a b c)) doesn't do what it looks like it does, and that's a bad
> thing.
I know! but CGI.pm does it, so what I want is in
> -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('f
>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
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');
10 matches
Mail list logo