in reply to Combining two lists into a hash
Update:Thanks Fletch - fixed "h" to $h.my @a = ('one', 'two', 'three'); my @b = (1, 2, 3); my %h; $h{$_}=shift @b for @a; # Destroys @b - copy that if it needs saving
"There are only two truly infinite things. The universe and stupidity, and I'm not too sure about the universe"- Albert Einstein
|
|---|