Robert Spier on Fri, 2 Feb 2001 11:15:34 -0500 (EST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Filename::find on win32


Francis, this code works fine for me:

use File::Find;
sub wanted { /.*\.exe/ && print "$File::Find::name\n"  }
find(\&wanted, 'c:/');
# find(\&wanted, 'c:/winnt');  # this works fine too

>>>>> "H" == HT-EX  <Gleeson> writes:

H> I am trying to use Filename::find on a win32 system.  It seems like
H> find can not handle a device name like c:\ in front of the supplied
H> search path.

H> find(\&wanted, 'c:/temp'); #does not work, no files found
H> find(\&wanted, 'temp'); #does work, assuming shell is at C:\

It looks like you are doing something wrong.  (Beyond calling
File::Find by the wrong name.)

-R

(also, please reconfigure your email software so that it does not send 
HTML mail to the list.  Thanks-)

**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**