CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [AlexPerl] dircopy maxdepth: Edit Log



Chris Charley
User

Apr 10, 2014, 6:17 PM


Views: 6907
Re: [AlexPerl] dircopy maxdepth

Well. I was wrong about the changes I recommended - didn't think it through :-(

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)


Edit Log:
Post edited by Chris Charley (User) on Apr 11, 2014, 9:15 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives