http://qs321.pair.com?node_id=861751

rucha has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am new to Perl. I have a problem: I am using readdir to store names of all files present in a directory, to an array. When I use -f function on each element of array using foreach, it does not pick up .txt files, but it identifies .pl files.