- or download this
while (@ref) {
my $k = shift(@ref);
$out{$k} = [ shift(@ref), shift(@ref) ];
}
- or download this
while (@ref) {
$out{$_} = [ shift(@ref), shift(@ref) ] for shift(@ref);
}
- or download this
push @{ $out{shift(@ref)} }, shift(@ref) while (@ref);