http://qs1969.pair.com?node_id=81304


in reply to Counting only certain files...

I would suggest passing readir to a grep.
I used it in one of my scripts like so,
@Files = grep {not /^(\.\.?|list\.txt)$/} readdir(DIR);
This returned all files except '.' and '..' and a file named 'list.txt'.

------
The Price of Freedom is Eternal Vigilance