bitman has asked for the wisdom of the Perl Monks concerning the following question:
my $ranksUsed = [ [ 1 ], [ 2 ] ]; my @ranksUsed; for (@$ranksUsed) { push @ranksUsed, $_->[0]; } my %ranksUsed = map {$_ => undef} @ranksUsed;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array of arrays to hash
by choroba (Cardinal) on Oct 06, 2014 at 15:06 UTC | |
|
Re: array of arrays to hash
by NetWallah (Canon) on Oct 06, 2014 at 17:25 UTC | |
by AnomalousMonk (Archbishop) on Oct 06, 2014 at 18:02 UTC | |
|
Re: array of arrays to hash
by bitman (Scribe) on May 02, 2017 at 14:19 UTC |