Help for this page

Select Code to Download


  1. or download this
        return $count - 2;     #maybe not the best way of removing . and .
    +.
    
  2. or download this
    sub isEmpty3 {
        return undef unless -d $_[0];
    ...
        my $count = grep { ! /^\.{1,2}/ } readdir $dh; # strips out . and 
    +..
        return $count;
    }