RE: Not an ARRAY reference. Problems reading a simple XML file

2007-04-02 Thread Jenda Krynicky
From: Andrew Curry <[EMAIL PROTECTED]> > If you look at $data for the problem file its not an array at that point. > For a single element XML::Simple doesn't display your data in a list i.e. > > With 1 element of record. > > $VAR1 = { > 'RECORD' => { >

Re: Not an ARRAY reference. Problems reading a simple XML file

2007-04-02 Thread Igor Sutton Lopes
On 2007/04/02, at 15:14, Dave Adams wrote: My script is having problems reading and XML file with only one record in it. When I add two or more records, there are no problems. The error is "Not and ARRAY reference.." Here is the PROBLEM xml file (test.xml): FBIS2004 CP1 Here is t

RE: Not an ARRAY reference. Problems reading a simple XML file

2007-04-02 Thread Andrew Curry
hing like XML::Parser, Lib:XML Etc... -Original Message----- From: Dave Adams [mailto:[EMAIL PROTECTED] Sent: 02 April 2007 15:15 To: beginners perl Subject: Not an ARRAY reference. Problems reading a simple XML file My script is having problems reading and XML file with only one record in

Not an ARRAY reference. Problems reading a simple XML file

2007-04-02 Thread Dave Adams
My script is having problems reading and XML file with only one record in it. When I add two or more records, there are no problems. The error is "Not and ARRAY reference.." Here is the PROBLEM xml file (test.xml): FBIS2004 CP1 Here is the WORKING xml file: FBIS2004 CP1 FBIS2005 C