Help for this page

Select Code to Download


  1. or download this
    perl -plwe'$h{$_}++ } for (sort { length($a)<=>length($b) } keys %h) {
    +' infile >infile.tmp
    
  2. or download this
    perl -i.bak -plwe'$h{$_}++; last if eof } for (sort { length($a)<=>len
    +gth($b) } keys %h) {' infile