in reply to Re^3: Data Structure: HOA or AOH ??
in thread Data Structure: HOA or AOH ??
is basically the same as@hash{qw( foo bar )} = (1, 2);
$hash{foo} = 1; $hash{bar} = 2;
(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)
|
|---|