On Thu, Sep 27, 2001 at 11:27:21AM -0500, Ken Williams wrote:
>
>
> Doug MacEachern <[EMAIL PROTECTED]> wrote:
>
> > On Thu, 27 Sep 2001, Philippe M . Chiasson wrote:
> >
> >> Regarding that lengty thread about the list context version of the
> >> APR::Table->get/FETCH, here is what I found....
> >>
> > ...
> >> TIE=nope
> >> METHOD=wantarray
> >
> > hmm, could be that @a = $table->{foo}; doesn't work in 1.x either.
> > which would be good. ken is right, FETCH should not return a list. i
> > think FETCH should always return the first value, if somebody wants
> > multivalues they can use $table->get;
>
> Oh, it hadn't occurred to me that Perl would actually enforce this in
> the TIEHASH interface. I suppose that's good, in this case,
> because it means we don't have to decide what to do about it. =)
>
Well, sounds more like a perl "bonus undocumented feature" to me. I don't
see why FETCH shouldn't be able to use wantarray() and return whatever it
wants.... Or am I missing something here ?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Philippe M. Chiasson <[EMAIL PROTECTED]>
Extropia's Resident System Guru
http://www.eXtropia.com/
Being an adult isn't about being grown up--it's about
realizing you need to grow up.
-- Larry Wall
perl -e '$$=\${gozer};{$_=unpack(P26,pack(L,$$));/^Just Another Perl
Hacker!\n$/&&print||$$++&&redo}'
msg01896/pgp00000.pgp
Description: PGP signature
