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)
In reply to Re^4: Data Structure: HOA or AOH ??
by ikegami
in thread Data Structure: HOA or AOH ??
by snape
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |