|
|
| Welcome to the Monastery | |
| PerlMonks |
Converting Array elements into hash key - value pairsby perlpal (Scribe) |
| on Mar 03, 2010 at 18:24 UTC ( #826489=perlquestion: print w/ replies, xml ) | Need Help?? |
|
perlpal has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Perl Monks,
The requirement is to convert the elements of an array into corresponding key-value pairs. The logic is either of the following :
Using the second logic, i have the following code and output : -----OUTPUT------
Is there a more efficient way to do the same ?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||