in reply to Perl Hashes

A quick loop over 0..2 to add keys and values to your hash should do, and allow you to change the value of 2 whenever you like.

To make the loop more compact, map is handy like so:

push @headHash, { map {$headline[$_] => $save[$_]} (0..$#headline) };

Replies are listed 'Best First'.
Re^2: Perl Hashes
by Horst (Initiate) on Jul 12, 2013 at 15:52 UTC

    Thank u i will try that