Help for this page

Select Code to Download


  1. or download this
    @listDir = readdir(ORIG);
    if (!@listDir) { die("there no files !") ; }
    foreach $i (@listDir) {
    ...
       }
       else {print "$i isn't a file !\n"; }
    }
    
  2. or download this
    $i = 'C:/test/hello.exe' ;
       if ( -f $i)
    ...
       }
       else {print "$i isn't a file !\n"; }
    }