it wouldn't be the same as push @jobs, { $key, $value }; because { $key, $value} returns a reference to an anonymous hash, while \%hash returns a reference to a named hash (%hash).$hash{$key} = $value; push @jobs, \%hash;
In reply to Re^3: array or hash reference
by PodMaster
in thread array or hash reference
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |