in reply to Re^8: Counting keys with defined or undefined elements in a hash (behaviour of values())
in thread Counting keys with defined or undefined elements in a hash

> ... but it can't know what list its return value is being assigned to.

No, I suppose not. Well, not without a change to the language anyway ... I wonder if Perl 6 would be able to tell. Then again, perhaps such a detailed level of introspection isn't generally useful.

  • Comment on Re: Re^8: Counting keys with defined or undefined elements in a hash (behaviour of values())