Apr 10, 2014, 6:17 PM
Well. I was wrong about the changes I recommended - didn't think it through :-(
Re: [AlexPerl] dircopy maxdepth
Because the directories in @directories are relative to the path, all should work.
As I said, I've not used use File::Copy::Recursive so can't help there. Funny that your program prints the first and not the second directory contents.
Your statement 'if ($#sub_directories > 1)' would allow processing if there were 3 or more items in @sub_directories. Is it possible that there are 2 or less?
(Or did you want 'if ($#sub_directories > -1)' to indicate a nonempty array)
(This post was edited by Chris Charley on Apr 11, 2014, 9:15 AM)