http://qs321.pair.com?node_id=734296


in reply to Win32::Daemon::State returns a 0 or 1

I have used Win32::Service and it returns several codes that I use a hash to get a word based status.
my %statcodeHash = ( '1' => 'stopped', '2' => 'start pending', '3' => 'stop pending', '4' => 'running', '5' => 'continue pending', '6' => 'pause pending', '7' => 'paused' ); ... print "Status = $statcodeHash{$statusHash{"CurrentState"}}\n";
Not sure what all Win32::Daemon returns. Maybe this gives you another option.

Jamie

UPDATE: fixed small spelling error

Replies are listed 'Best First'.
Re^2: Win32::Daemon::State returns a 0 or 1
by azaragoza (Acolyte) on Jan 05, 2009 at 22:36 UTC
    You are right this could be another option, but it seems to only return two values '0' and '1', thanks.