in reply to Re^3: Unlinking a file when the file doesnt exist
in thread Unlinking a file when the file doesnt exist

I didn't say anything that contradicts that. It's perfectly fine to use $! immediately after unlink returns an error as I showed in the very post you quoted.

In moritz's code, $! isn't being used immediately after unlink returns an error. In decreasing likeliness of occurrence,