http://www.perlmonks.org?node_id=12056


in reply to unlink unworking

To avoid errors in creating links and directories you can use readlink function
i.e. readlink($theLink); to chech if the link exists.
Then you'd better use time() function to create a uniq name of your directory
i.e.
$dirname = $path.time();

/Maqs.