in reply to Re: Problems using File::stat,Find under windows
in thread Problems using File::stat,Find under windows

you don't have to do the '-f' check inside your wanted subroutine. My thinking is that the file ($File::Find::name) should always exist,

While you are mostly corrct about the file existing (although on a multiuser system it might have been deleted in the meantime) youve got the meaning of the -f filetest wrong. It returns true if the item in question is a file. And File::Find will match directories as well as files. So the meaning of this test in this case is to eliminate any found dirs.

Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.

  • Comment on Re: Re: Problems using File::stat,Find under windows