in reply to unlink Question

If you unlink a directory (as root and flying the -U flag), you will indeed damage things. Use rmdir instead. Advice straight from perldoc -f unlink.

After Compline,
Zaxo