HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by bkyan | Hacker News Reader
Full thread
bkyan
·
# This works as well...
my %number_hash = map {$_, 1} @list;
View on HN
lepht
·
I like
> $number_hash{$_} = 1 for @list;
Reply on news.ycombinator.com