- or download this
%alphabet = (%alphabet, map { $_ => 1 } @chars);
- or download this
@alphabet{@chars} = (); # No need to set values to 1 as you only ever
+use keys
- or download this
if(defined $sorted{$characters}) {
...
else {
$sorted{$characters} = [$line];
}
- or download this
push @{$sorted{$characters}}, $line;
- or download this
foreach (my $pos2 = 0; $pos2 < $count; $pos2++) {
next if $pos2 < $pos1;
- or download this
for (my $pos2 = $pos1; $pos2 < $count; $pos2++) {