http://www.perlmonks.org?node_id=1010754


in reply to Re: How to use perl to parsing a XML file to csv file which have the same sequence in xml file?
in thread How to use perl to parsing a XML file to csv file which have the same sequence in xml file?

Hello

I tried to run the example provided here, and I get the following error:

 Expected fields to be an array ref at xml.pl line 11

When I look at the contents of $book, I see:

$VAR1 = bless( [ 'Book 1 author 1', 'Book 1 author 2', 'Book 1 title', 'Book1ISBN' ], 'XML::LibXML::NodeList' ); $VAR1 = bless( [ 'Book 2 author 1', 'Book 2 author 2', 'Book 2 title', 'Book2ISBN' ], 'XML::LibXML::NodeList' );
I am running perl 5.10.1 -- any tips?