Help for this page

Select Code to Download


  1. or download this
    while ($_ = readdir(INDIR)) {
      ...
    }
    
  2. or download this
    while ($_ = readdir(INDIR)) {
      next if -d || $_ eq '.' || $_ eq '..';
      ...
    }
    
  3. or download this
    unless (-d $srcdir && -d $destdir ) {die "Error: $!";}