![]() |
|
We don't bite newbies here... much | |
PerlMonks |
RE: Re: Array to Hashby takshaka (Friar) |
on May 10, 2000 at 20:35 UTC ( #10995=note: print w/replies, xml ) | Need Help?? |
A hash slice is by far the coolest and most Perlish
(and as httptech points out, the fastest) method,
but foreach is the most popular.
$hash{$_}++ for @array;
In Section
Seekers of Perl Wisdom
|
|