Help for this page

Select Code to Download


  1. or download this
    sub hasSubs {
        my $dir = shift;
    ...
        closedir CURRENT;
        return $hasSubs;
    }
    
  2. or download this
    my @subDirList=`dir /ad /b \"$dir\"`;
        if ($#subDirList >= 0) { $hasSubs=1; }
    ...
             chomp $subDirList[$counter];
             $hasSubs = 1;
            }