in reply to Need to delete empty directories.

use File::Finder; File::Finder->depth->eval{ sub { rmdir } )->in(@your_top_level_dirs);
Just ignore the errors you get when it's not empty, and make sure you do it in depth-order first.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.