1 $PATH="F://E-Book"; 2 opendir(DIR,$PATH); 3 @array=readdir(DIR); 4 close(DIR); 5 foreach $fn(@array){ 6 if ($fn ne '.' and $fn ne '..') { 7 print "$fn\n"; 8 } 9 }