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


in reply to Recursive image processing (with ImageMagic)

The standard module for traversing directories is File::Find. You just need to provide a function detailing what to do with each file. The find function of File::Find also calls directories before files so you can just create the target dirs without worrying about the sequence of calls.