Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    my @arr = qw (J K L M N O);
    
    print join (' - ', splice @arr, 0, 2), "\n" while @arr;
    
  2. or download this
    J - K
    L - M
    N - O
    
  3. or download this
    use warnings;
    use strict;
    ...
        $done{$str}++;
        print "$str\n";
    }