The element you're looking for isn't where you think it is. Use Data::Dumper (or a similar module) to help visualize the parsed data structure.

Your script and XML::Simple is parsing your data into this structure (viewed using Data::Dumper):

$VAR1 = { 'WhicsService' => { 'Parameters' => { 'Service' => { 'Server +sMin' => { + 'Detail' => 'Minimu m number of servers running on WHICS', + 'Value' => '7' + }, 'comman +d' => { + 'Detail' => 'Unix comm and required to run WR81B', + 'Value' => 'cd /whics/ ahm && ./bin/wh_wweb80.sh ' + }, 'PortOu +t' => { + 'Detail' => 'Default p ort for Unix server connections', + 'Value' => '4100' + }, 'Name' +=> 'WR80B', 'WR80B' + => { + 'Runable' => {} + }, 'Runabl +e' => { + 'Detail' => 'Run WR80B process if value is yes else does not stat WR80B', + 'Value' => 'yes' + } }, 'ServersMax' => { 'Det +ail' => 'Maximum number of ser vers running on WHICS', 'Val +ue' => '15' }, 'WHICS' => { 'Detail' +=> 'Name of Unix system runnin g WHICS', 'Value' = +> '123.456.7.89' } } } };
In other words, the value you want is in:
$config->{WhicsService}{Parameters}{Service}{Runable}{Value}
(note that you can eliminate the dereferencing arrows (->) between the hash elements, as documented in perlref).

For more information about displaying complex data structures, see Re: How can I visualize my complex data structure?.

Update: added a couple links - thanks planetscape


In reply to Re: Problem using module XML::Simple by bobf
in thread Problem using module XML::Simple by adam_2005

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.