in reply to Re^2: Data Structure: HOA or AOH ??in thread Data Structure: HOA or AOH ??
@hash{qw( foo bar )} = (1, 2); [download]
$hash{foo} = 1; $hash{bar} = 2; [download]
(I said "basically" because there is a difference. The former uses a list assignment while the latter uses two scalar assignments. List assignments don't return the same as scalar assignments. See Mini-Tutorial: Scalar vs List Assignment Operator)