I tried this one , but it seems not working:(
Not an ARRAY reference at test.pl line 8
----- Original Message ----- From: "Philipp Traeder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 25, 2004 4:36 PM
Subject: Re: parse xml



On Monday 25 October 2004 16:49, Jenda Krynicky wrote:
From: "Traeder, Philipp" <[EMAIL PROTECTED]>

> print $ref->{'ResultItem'}->[0]{'MenuName'};

I think it's better to either skip all the -> between subscriptions
or include them all:

print $ref->{'ResultItem'}[0]{'MenuName'};
or
print $ref->{'ResultItem'}->[0]->{'MenuName'};


You're right - I should have taken another look at this before posting. My main focus was on pointing out XML::Simple combined with Data::Dumper - though this is *not* an excuse ;-).

Philipp

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to