You want to use the each function.
I'm not sure I understand how "each" will solve this problem. I don't think that you do either, given that you haven't shown an example.
See http://perldoc.perl.org/functions/each.html. (This was the second hit in a Google search for "perldoc print hash each".)
That's nicely self-referential, isn't it? How do you expect someone to come up with a Google search term that includes the name of the function they're looking for?
In reply to Re^2: Array to hash converstion
by davorg
in thread Array to hash converstion
by gem555
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |