Not quite sure how you want to put the data "in a hash". Do you want the item titles to be keys or values or what?
But here's a way to get all of the titles (untested):
@titles = map { $_->{title} } @{$data->{channel}{item}}
In reply to Re: XML::Parser - element data to hash?
by duff
in thread XML::Parser - element data to hash?
by senik148
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |