in reply to XML::Parser - element data to hash?
Are you asking for each item in a hash? If so, something like:
my @items = @{$data->{channel}->{item}}; for my $hash ( @items ) { print 'title: ' . $hash->{title}; print 'link: ' . $hash->{link}; print 'desc: ' . $hash->{description}; }
But for RSS, consider one of the many CPAN modules.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: XML::Parser - element data to hash?
by senik148 (Beadle) on Dec 21, 2005 at 17:24 UTC |
In Section
Seekers of Perl Wisdom