Gleeson, Francis (HT-EX) on Fri, 2 Feb 2001 11:30:52 -0500 (EST)


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

RE: Filename::find on win32


Title: RE: Filename::find on win32

You are correct, I tested your included code snippet.
I will have to compare your script to mine until I figure
out what is different. Thanks.

> -----Original Message-----
> From: rspier@speed.seas.upenn.edu [mailto:rspier@speed.seas.upenn.edu]
> Sent: Friday, February 02, 2001 11:15 AM
> To: phl@lists.pm.org
> Subject: 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**
>