"unlink" will not delete directories unless
you are superuser and the -U flag is supplied to
Perl. Even if these conditions are met, be warned
that unlinking a directory can inflict damage on
your filesystem. Use "rmdir" instead.
If LIST is omitted, uses "$_".
Comment on Re: ?Re: Re: deleting directory named -I (as Ice).
Strictly speacking you can use unlink to delete directories but it works differently than rmdir. For example you can unlink directory which has some files in it and it likely to leave you with corrupted filesystem but you cannot do same with rmdir which will just fail in this case.