in reply to checking to see if a directory is empty
I would suggest using File::Copy::Recursive to transfer directories (or File::NCopy if you wish) recursively, File::Dircmp to verify if everything was copied properly, and File::Path to remove source tree.
And I also know that there should be an easier way to do it...
--------------------------------
An idea is not responsible for the people who believe in it...
|
---|
In Section
Seekers of Perl Wisdom