Syntactic Confectionery Delight | |
PerlMonks |
Re: Adding values from an array to a hashby reneeb (Chaplain) |
on Oct 12, 2006 at 11:27 UTC ( [id://577812]=note: print w/replies, xml ) | Need Help?? |
You can do this: @locations{@locations} = (1) x scalar @locations
In Section
Seekers of Perl Wisdom
|
|