in reply to pushing hash values to an array

Perhaps you should try fixing the errors that you get when running this code. With "use strict" enabled, this code doesn't run at all because you haven't declared any of your variables.

Once you've fixed those problems, you'll see that you are refering to a hash reference, $h which doesn't exist anywhere in your code.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg