http://www.perlmonks.org?node_id=1052272


in reply to count file in directory

When I run your script in linux it correctly gives me the number of files in the directory: hidden+visible. are there hidden files such as . (current directory) and .. in windows? My guess would be there are hidden files you are missing