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.
In reply to Re: XML::Parser - element data to hash?
by qq
in thread XML::Parser - element data to hash?
by senik148
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |