in reply to Re: Re: Re: A list returns its last, an array returns its weight
in thread A list returns its last, an array returns its weight

I thought the contexts were SCALAR and ARRAY. I did not know where was a list context. Oh, hold it, just because the function is called wantarray one cannot assume that is checking for array context. Sigh.

Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality

Replies are listed 'Best First'.
Re: So is there a list context?
by Abigail-II (Bishop) on Nov 13, 2002 at 17:32 UTC
    The last sentence of perldoc -f wantarray reads:
    This function should have been named wantlist() instead.

    Abigail