Assign method call to hash value?

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


Quoting gvim <gvimrc at gmail.com>:

> 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.

Dave...


More information about the london.pm mailing list