foreach(@_) { push @something, { something => $_ }; # make a new hash and push it onto @something! Magic! }