Hey All!

It might be close to the end of the day, or I just might be losing my head, but I need some help accessing a referenced HASH.

I have a hash called %soapResult which gets populated from a web service.

When I use Data::Dumper on it, I get this result:
$VAR1 = 'VehicleClaimHistoryConsumerDS'; $VAR2 = { 'RequestParametersDT' => { 'VIN' => '1G2JC51H', 'Memo' => '1234567890', 'VICCType' => 'A' }, 'ClaimKindOfLossTransDT' => { 'LossAmt' => '59', 'UITTransactionTypeCode' => '', 'ClaimId' => '070041356250000000 +000', 'Sequence' => '1', 'KindOfLossCode' => '27' }, 'ClaimBaseInfoDT' => { 'VIN' => '1G2JC51H', 'ExpenseAmt' => '0', 'ClaimDay' => '4', 'ClaimYear' => '1993', 'ClaimId' => '070041356250000000000', 'IAOCompanyInd' => 'N', 'ClaimMonth' => '10' }, 'ClaimKindOfLossDT' => { 'VehicleLossCode' => 'K', 'ClaimId' => '070041356250000000000', 'KindOfLossCode' => '27' }, };
I would like to access each one of those hashes inside $VAR2. If anyone has any suggestions, that would be great!!

Cheers,
Smokey

In reply to Access Hash References by SmokeyB

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.