http://www.perlmonks.org?node_id=121069


in reply to How do I loop through a list two or more elements at a time?

my %hash = @list; print "$_ - $hash{$_}\n" for keys %hash;