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

Hi,
How can i found/serch all "*.pl" files under drive "D" via perl program.
I'm looking for Command that will run on WIN and be like:
 find . -name "*.pl" (Unix command).
Please advise.
Thanks.

Replies are listed 'Best First'.
Re: Find files on Windows.
by kyle (Abbot) on Jun 03, 2008 at 15:08 UTC
Re: Find files on Windows.
by BrowserUk (Patriarch) on Jun 03, 2008 at 15:25 UTC
      For just files, not dirs:
      dir /s/b/a-d d:\*.pl
Re: Find files on Windows.
by igelkott (Priest) on Jun 03, 2008 at 20:37 UTC

    Could of course install Cygwin and run the find directly or, better yet, use locate (as long as you run updatedb --localpaths='/cygdrive/d' first).

    As a single search operation, this would of course be a silly suggestion but it's something to consider if you are more comfortable with unix commands and plan to use the windows machine for a while.