Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: pushing multiple key-value pairs into an existing hash

by lomSpace (Scribe)
on Feb 11, 2013 at 18:22 UTC ( #1018210=note: print w/replies, xml ) Need Help??


in reply to Re^3: pushing multiple key-value pairs into an existing hash
in thread pushing multiple key-value pairs into an existing hash

I went ahead and used the map function. Did you have something else in mind?

  • Comment on Re^4: pushing multiple key-value pairs into an existing hash

Replies are listed 'Best First'.
Re^5: pushing multiple key-value pairs into an existing hash
by 7stud (Deacon) on Feb 11, 2013 at 18:35 UTC

    Did map produce the results you want? If so, post your code, then someone can tell you if there is a better way.

    By the way, map adds the key/value pairs one by one--just like a while loop.