in reply to moving directories recursively

I'm a bit confused. If the backup directory exists, you delete it, and then you try to move stuff into it. But you never recreated it.

But since all you want to do is moving everything, not copying, things are very simple. First delete the backup dir if it exists, then do:

rename $workspace => $backup_dir or die $!;
That will "recursively" move everything.

Abigail

Replies are listed 'Best First'.
Re^2: moving directories recursively
by Aristotle (Chancellor) on Jun 03, 2002 at 22:49 UTC
    Except it doesn't work across filesystem boundaries.

    Makeshifts last the longest.