http://www.perlmonks.org?node_id=1014462


in reply to Re^6: Finding and sorting files in massive file directory
in thread Finding and sorting files in massive file directory

What would it add over and above using readdir with while and basic unix commands
It allows you to programmatically to select, add files etc, without having to fork out to an external program. For example, if you didn't need to delete the files afterwards, you could have just used my original script, with $tar->add($file) for each matching file. No need to fork out, no command line length limitations etc.

Dave.

  • Comment on Re^7: Finding and sorting files in massive file directory