in reply to Re: Reaped: Re: searching a particular file from a directory that is passed on command prompt
in thread searching a particular file from a directory that is passed on command prompt

Change the logic of your script to use the core module File::Find. This is documented in perldoc, and PerlMonks has a tutorial.

Also, check out previous PerlMonk threads on this question. The classic is by paco: How do I recursively process files through directories. A recent thread is listing all subdirectories of directory into file.

If you run into problems...

Regards,

Athanasius <°(((><contra mundum

  • Comment on Re^2: Reaped: Re: searching a particular file from a directory that is passed on command prompt