Help for this page

Select Code to Download


  1. or download this
        sub SortDirectory()
        {
           my $arrayRef = $_[0];
    
  2. or download this
           my @fileArray;
           my $currIndex = 0;
    ...
           for ( $i = 0; $i < @$arrayRef; $i++ )
           {
              if ( (grep /\./, $$arrayRef[$i]) != "" )
    
  3. or download this
              {
                 $fileArray[$currIndex++] = splice(@$arrayRef,$i--,1);
    ...
           }
           push (@$arrayRef, @fileArray);
        }
    
  4. or download this
    sub SortDirectory
    {
    ...
        }
      }
    }