Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: XML::Simple Array bombs out with 1 Item in document

by derby (Abbot)
on Jun 14, 2012 at 18:52 UTC ( [id://976279]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      foreach my $e ( @{$data->{channel}[0]{items}} ) {
       ...
       print $e->{title}[0] ...
      }
    
  2. or download this
    my $rss = XML::RSS->new( version => '2.0' );
    my $rss->parse( $rss_xml );
    ...
      print "link: $item->{link}\n";
      print "desc: $item->{description}\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-25 15:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found