Assign method call to hash value?

Dave Cross dave at
Tue Jan 29 13:48:09 GMT 2013

Quoting gvim <gvimrc at>:

> a hash is a list but I mistakenly assumed it meant a list of scalars.

That wasn't your mistake. A hash *is* (composed from) a list of  
scalars. There is no other kind of list in Perl.

You mistake was (apparently) assuming that a subroutine called as part  
of a hash initialisation would be called in scalar context. I hope  
we've now cleared that up.


More information about the mailing list