Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $get_phone=""; if (ref($xml_data->{'mainA'}->{'mainB'}->{'mainC'}) eq 'ARRAY') { $get_phone = $xml_data->{'mainA'}->{'mainB'}->{'mainC'}->[0]; } else { $get_phone = $xml_data->{'mainA'}->{'mainB'}->{'mainC'}; } $got_phone = $get_phone->{'mainD'}->{'mainE'}->{'mainF'}->{'mainG' +}; print "<br>**$got_phone**<br>"; # I am getting this Result: **HASH(0xa8f8064)**
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Parser Help!
by runrig (Abbot) on May 06, 2010 at 20:26 UTC | |
by rovf (Priest) on May 07, 2010 at 07:29 UTC | |
by Jenda (Abbot) on May 09, 2010 at 20:03 UTC |