in reply to Detecting stale pid file under *nix

By the way:
if ( ... >= 9**9**9) {
If you mean 'infinity', then you can use the string 'Inf' instead. (or 'inf', or 'INF' - Perl recognizes all of these as 'infinity'.)
if ( ... >= "Inf") {
Please note: I advise against using this to improve the original code. Please use the suggested module instead.

Replies are listed 'Best First'.
Re^2: Detecting stale pid file under *nix
by Dallaylaen (Chaplain) on Oct 25, 2016 at 13:05 UTC
    The handling of Inf depends on the underlying standard library. I know it's not me who should be talking about portability here, but still.