File ops like open(), unlink(), etc return status of whether it worked or not. You've seen open(...) or die"...."; same sort of thing for unlink() if you want to make sure that it succeeded. Maybe you've got a wrong path name in the unlink() or file is a directory or some other such thing that would cause the unlink to fail. Of course you can do other things that "die", depends upon your application.