in reply to Shouldn't modify file or directory structure when in File::Find?

You might wanna use "postprocess", as in
find({ wanted =>\&wanted, postprocess => sub { unlink @file_list; }, }, $path );
seeing how you're only dealing with files.

____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re: Shouldn't modify file or directory structure when in File::Find?
  • Download Code