in reply to unlink a server file

You should check out autodie. Otherwise, choose ...

unlink $file or die "couldn't delete $file: $!"
... for an explanation of the failure.

-Paul