in reply to Re^2: hash deref confusion: Intermediate Perl
in thread hash deref confusion: Intermediate Perl
I wouldn't really say it's a quirk. You're assigning a list of values to a list of hash slots, so the @ sigil is quite appropriate.
Sure, from that perspective it makes sense, but IIRC TheLarry himself called this a mistake, its why perl6 always calls a %hash a %hash{$key} not $hash{$key}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: hash deref confusion: Intermediate Perl
by tobyink (Canon) on Jul 30, 2012 at 08:30 UTC | |
by Anonymous Monk on Jul 30, 2012 at 08:37 UTC |
In Section
Seekers of Perl Wisdom