Re: inconsistency between CGI.pm and Apache::Request

2001-11-06 Thread Tatsuhiko Miyagawa
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

RE: inconsistency between CGI.pm and Apache::Request

2001-11-06 Thread Lincoln Stein
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

Re: inconsistency between CGI.pm and Apache::Request

2001-11-06 Thread Lincoln Stein
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

Re: inconsistency between CGI.pm and Apache::Request

2001-11-01 Thread Tatsuhiko Miyagawa
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

RE: inconsistency between CGI.pm and Apache::Request

2001-11-01 Thread Matt Sergeant
> -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

Re: inconsistency between CGI.pm and Apache::Request

2001-11-01 Thread Tatsuhiko Miyagawa
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]>

Re: inconsistency between CGI.pm and Apache::Request

2001-11-01 Thread Tatsuhiko Miyagawa
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

RE: inconsistency between CGI.pm and Apache::Request

2001-11-01 Thread Matt Sergeant
> -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

Re: inconsistency between CGI.pm and Apache::Request

2001-10-31 Thread Robert Landrum
>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

inconsistency between CGI.pm and Apache::Request

2001-10-31 Thread Tatsuhiko Miyagawa
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');