Apart from all the other suggestions: for that particular
application (keeping two directories in sync) you might want
to look at
rsync, which
is a program designed specifically for that purpose, and which
can do remote backups and all sort of other nifty things.
Remember:
TIMTOWTDI (and not all of them use Perl :-) )
--ZZamboni