in reply to XML::Feed not working
G'day Neil,
"... does not look like what I expect."
You haven't stated what your expectations are. In the remainder of my post, references to your expectations are just guesses. If they're good guesses, all's well; if not, post your expectations.
In the code
warn "Got bug title [$e->title]"
you're expecting the return value of $e->title to be interpolated into the string. It doesn't work like that. Here's a quick and dirty example:
$ perl -Mstrict -wE 'my $e = bless {} => "XXX"; say "[$e->title]"' [XXX=HASH(0x7fc0c9805480)->title]
One way to get what you want is to wrap $e->title in @{[...]}:
$ perl -Mstrict -wE 'my $e = bless {} => "XXX"; say "[@{[$e->title]}]" +' Can't locate object method "title" via package "XXX" at -e line 1.
Now an attempt is made to call the object's method. Using this syntax in your warn code may provide a little more insight into what's happening:
warn "Got bug title [@{[$e->title]}]"
However, it appears to me that the most urgent thing you need to deal with is:
Warning: XML::LibXML compiled against libxml2 20902, but runtime libxm +l2 is older 20901
— Ken
|
|---|