palette has asked for the wisdom of the Perl Monks concerning the following question:
How to build a hash using two arrays.
Consider I want the first element of the array to be the first key of the hash and the first element of the second array as the value for the corresponding hash key and so on
Please tell me how to go around this.
Thank you
Consider I want the first element of the array to be the first key of the hash and the first element of the second array as the value for the corresponding hash key and so on
Please tell me how to go around this.
Thank you
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Hash and arrays
by holli (Abbot) on Aug 04, 2005 at 08:33 UTC | |
by thinker (Parson) on Aug 04, 2005 at 08:48 UTC | |
Re: Hash and arrays
by TedPride (Priest) on Aug 04, 2005 at 08:45 UTC | |
by polettix (Vicar) on Aug 04, 2005 at 09:14 UTC | |
by anonymized user 468275 (Curate) on Aug 04, 2005 at 11:14 UTC | |
Re: Hash and arrays
by TedPride (Priest) on Aug 04, 2005 at 11:39 UTC | |
by davorg (Chancellor) on Aug 04, 2005 at 11:52 UTC |
Back to
Seekers of Perl Wisdom