Hi Franklin,

please bottom post (write your answer below the quoted text) - it's much 
easier to follow a thread this way.

On Thursday 28 October 2004 02:11, Franklin wrote:
> >> > print $ref->{'ResultItem'}->[0]{'MenuName'};

> I tried this one , but it seems not working:(
> Not an ARRAY reference at test.pl line 8

Taking a look at the other thread you opened on this list, my first guess is 
that your input files differ (your new file seems to have "ResultItemOne" as 
top level element while your original post's top level element was called 
"ResultItem").

I'd suggest to read the XML file via XML::Simple and to dump it via 
Data::Dumper - then you can see what the data structure looks like. After 
that you just need to play around a bit with array and hash references. If 
you run into problems with this, post the output of Data::Dumper to the list 
and somebody will be able to help.

HTH,

Philipp


-- 
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