foreach (@inventory) { print ""; print "$_"; print "$inv_prices{$_}"; print "$inv_weights{$_}"; print "" }