good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
converting ana array to a hashby hotshot (Prior) |
on Jul 24, 2002 at 13:04 UTC ( [id://184802]=perlquestion: print w/replies, xml ) | Need Help?? |
hotshot has asked for the wisdom of the Perl Monks concerning the following question: Hi guys ! A simple one. How can I convert an array of n elements to a hash with those n elements as keys? (the values are not important to me). Second one. I have to run on the above hash as follows:
like that I run on a decresing hash %myhashtill every element passes the test and the hash is empty. Will it work or removing elements while running on the hash can cause problems of some sort? Thanks. Edited: ~Wed Jul 24 15:26:45 2002 (GMT) by footpad: Added missing </code> tag
Back to
Seekers of Perl Wisdom
|
|