Assigning anonymous hash to a list

gvim gvimrc at gmail.com
Tue Jul 30 20:24:32 BST 2013


On 30/07/2013 20:11, Mark Stringer wrote:
> Not sure why it's inconsistent. This works as you'd expect. Note the
> parens.
>
> my ($str, $ref) = ('text', {a => 1, b => 2, c => 3});
>
> Mark

I'm confusing arg lists with list assignment.

gvim



More information about the london.pm mailing list