perldoc -f unlink says the caller must check the return value of unlink() and sets $!, not $?