Help for this page

Select Code to Download


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