in reply to Find a File in a directory

In addition to borisz's hints, you want to look at File::Find, and possibly File::Find::Rule. Depending on your actual task, opendir and readdir might be another approach.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.