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