On Thu, Sep 27, 2001 at 07:07:48PM -0700, Doug MacEachern wrote:
> On Fri, 28 Sep 2001, Philippe M . Chiasson wrote:
>  
> > 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 ?
> 
> $foo = $bar{baz}; where %bar is tied goes something like:
> Perl_pp_helem()
> Perl_mg_get()
> Perl_magic_getpack()
> S_magic_methpack(), which does:
>     if (magic_methcall(sv, mg, meth, G_SCALAR, 2, NULL)) {
>                                      ^^^^^^^^

Shouldn't it do something like....
      if (magic_methcall(sv, mg, meth, GIMME_V, 2, NULL)) {
                                       ^^^^^^^



-- 
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}'

Attachment: msg01899/pgp00000.pgp
Description: PGP signature

Reply via email to