Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by knew (5814) on 2006.07.04 17:50 (#48570)
    oh hehe.

    END {! -f $lock_file || unlink $lock_file || warn "unlink: $!"}

    or in other words...

    "Let's delete the lock file if it exists when we're ENDing, even if we're doing so because we've detected a previous instance of the program"