I have a hash that contains keys, but does not yet have values. How do you push a list of an item into the value for a particular key?
I tried doing this example below, but it does not seem to be working. Is there anything wrong with the way this is written? Can someone give me suggestions for trouble shooting if this looks fine? Thanks! -T ---------------------------------------------------------- unless (exists $shots_OTIS{$shot}) { #print "putting shot in array"; $shots_OTIS{$shot} = ""; } push( @{$shots_OTIS{$shot}}, $endShot); ###TRIED THIS. DID NO WORK }