in reply to Re^4: my array is almost a hash, but keys are not unique.
in thread my array is almost a hash, but keys are not unique.

Yes, thank you very much! I did actually use ELISHEVAS golf code as a basis for my own, now I'll review. As mentioned elsewhere in this thread, I don't like the C style loops, which was one of the reasons I picked it. My version was something like this:
my %out; my @in = @{ $in }; my $i = 0; while ( $i < $#in ) { push( @{ $out{ $in[ $i++ ] } }, $in[ $i++ ] ) ; } return \%out;
Which was basically ELISHIVAS, with dereferencing and no postfix while.


- Boldra