Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Adding values from an array to a hash

by davorg (Chancellor)
on Oct 12, 2006 at 10:10 UTC ( [id://577795] : note . print w/replies, xml ) Need Help??


in reply to Adding values from an array to a hash

Do you mean this:

$locations{$_}++ for @locations;
--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg