carl

PERL SDK - Nested configurations

Discussion created by carl on May 9, 2012
Latest reply on May 9, 2012 by comfortably_nim

I have a small config files with the following section:

 

<profiles>
    <test>
        active = yes
        xml_request = <soap:Body><GetQuote xmlns="http://www.webserviceX.NET/"><symbol>AEF</symbol></GetQuote></soap:Body></soap:Envelope>
    </test>
    <test2>
        active = yes
        xml_request = <soap:Body><GetQuote xmlns="http://www.webserviceX.NET/"><symbol>AA</symbol></GetQuote></soap:Body></soap:Envelope>
    </test2>
    <test3>
        active = yes
        xml_request = <soap:Body><GetQuote xmlns="http://www.webserviceX.NET/"><symbol>AA</symbol></GetQuote></soap:Body></soap:Envelope>
    </test3>
</profiles>

 

Using an exaple I found here on the forum I use the following line of code:

 

for my $key (%{$config->{profiles}}) {
print("\n$key\n");

 

Which produces:

 

test

HASH(0xe8f8b0)

test3

HASH(0xe8f970)

test2

HASH(0xe8f910)

 

-- My question is what are these HASH keys and how to I stop them from apearing in the code?

Outcomes