I keep hearing that I shouldn't use the unlink() command to remove directories because it could damage the file system and should use rmdir() instead.
But rmdir only removes empty directories so a system call is sometimes easiest to remove directories with files still in them. (and I like to avoid system calls)
What I don't know is how safe is:
The use File::Path module seems to make use of both unlink and rmdir, but looks looks safe, but just want to ping you guys here first to see your experience .