Help for this page

Select Code to Download


  1. or download this
    opendir(ODIR,"c:/") || die "Cannot open this directory: $!"; 
    
    ...
    #        ...
        }
    }
    
  2. or download this
    while (<c:/*>) { 
        if (-d) { print "$_ is a directory\n" } 
        else { print "$_ is a file\n"; } 
    }