in reply to Virtual memory issue with File::Find?

A shot in the dark... maybe those Win32::Perms objects are not being reaped and/or they are causing memory leaks. Devel::Leak may help you spot what's going on. Otherwise you might want to see if you can get away with creating one Win32::Perms object and then keep feeding it new filenames.

I also suspect you really want to say scalar localtime. Right now, all you are doing is collecting the seconds component of the epoch time of the file.

Also, test your open and die if it doesn't succeed.

Minor quibble: emit the filename as the last field. If you have to eyeball the file (even though I'm assuming it's being processed downstream by another prog) it will be easier on the eyes.

--
g r i n d e r
  • Comment on Re: Virtual memory issue with File::Find?