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) };
In reply to Re: Perl Hashes
by SuicideJunkie
in thread Perl Hashes
by Horst
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |