in reply to array of arrays to hash

Looking back now ....

my $ranksUsed = [ [ 1 ], [ 2 ] ]; my %ranksUsed; for (@$ranksUsed) { $ranksUsed{$_->[0]}=undef; }

No map or sub array.