Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Problem handling array from XML stream

by bobf (Monsignor)
on Jun 05, 2006 at 03:27 UTC ( [id://553525]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @program_array = $XMLref->{Response}->[0]->{Program};
    
  2. or download this
    my @program_array = @{ $XMLref->{Response}[0]{Program} };
    my $program_aref = $XMLref->{Response}[0]{Program};
    
  3. or download this
    if( ref( $XMLref->{Response}[0]{Program}[0] ) ) {
        my $program_arrayref = $XMLref->{Response}[0]{Program};
    ...
            }
        }
    }
    
  4. or download this
    Balance:nl1 has been published:04/20/05:
    Balance:mas has been published:04/20/05:04/26/06
    Breathe:nl1 has been published:04/20/05:
    Breathe:mas has been published:04/20/05:04/26/06
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://553525]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-09-10 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.