<?xml version="1.0" encoding="windows-1252"?>
<node id="150666" title="Re: Using WMI in Perl" created="2002-03-09 23:41:54" updated="2005-07-19 14:08:11">
<type id="11">
note</type>
<author id="5842">
PrakashK</author>
<data>
<field name="doctext">
Check your print statement. You're printing "not running" when the value of &lt;code&gt;$refService-&gt;{Started}&lt;/code&gt; is true.
&lt;p/&gt;
Shouldn't it be like this?
&lt;code&gt;
print $refService-&gt;{Name}
. " is "
. ($refService-&gt;{Started} ? "" : "not ")
. "running\n";
&lt;/code&gt;
/prakash</field>
<field name="root_node">
150657</field>
<field name="parent_node">
150657</field>
</data>
</node>
