"be consistent" | |
PerlMonks |
Re: Better way?by Yohimbe (Pilgrim) |
on Feb 16, 2001 at 09:59 UTC ( [id://58797]=note: print w/replies, xml ) | Need Help?? |
This looks like a perl based rsync(1) kind of thing.
Unless I'm horribly wrong here, this is really not that ugly. About the only thing ugly is the memory usage for the various lists. That could get big, if the file lists are long. Yours is pretty easily understood code, and unless it runs many many times a second, should not be a huge problem. But if you wanted to trim up the memory usage, perhaps looking at processing the lists sequentially, and storing only exceptions would be better/faster/more elegant. } -- Jay "Yohimbe" Thorne, alpha geek for UserFriendly
In Section
Seekers of Perl Wisdom
|
|