Help for this page

Select Code to Download


  1. or download this
       @sorted = map { $_->[1] }
       sort { $a->[0] <=> $b->[0] }
       map { [ length $_, $_ ] } @strings;
    
  2. or download this
       @temp = map { [ length $_, $_ ] } @strings;
    
  3. or download this
       @temp = sort { $a->[0] <=> $b->[0] };
    
  4. or download this
       @sorted = map { $_->[1] } @temp;