in reply to wrong pid

As a side note, I recommend using strictures:

use strict; use warnings;

Doing the PID 'munging' yourself just seems wrong. A few modules that look appealing:

There are more related modules on CPAN.

Replies are listed 'Best First'.
Re^2: wrong pid
by js1 (Monk) on Apr 23, 2007 at 13:40 UTC

    Hackish indeed! Maybe, but I didn't really want to use a sledgehammer to crack a nut, and I want the script to be as quick as possible.

    Also I'd like to understand what was going wrong in my original code. I might cave in to the Unix::PID module now, although it does has a few prereqs:

    Warning: prerequisite Class::Std 0 not found. Warning: prerequisite Class::Std::Utils 0 not found. Warning: prerequisite List::Cycle 0 not found. Warning: prerequisite Math::Fibonacci::Phi 0 not found. Warning: prerequisite Time::HiRes 0 not found. Warning: prerequisite version 0 not found.