Re: issue with dereferencing a hash

2010-11-04 Thread galeb abu-ali
thanks, you're right. I took another look at the data structure and got the script to work. On Wed, Nov 3, 2010 at 6:07 PM, Jim Gibson wrote: > On 11/3/10 Wed Nov 3, 2010 1:13 PM, "galeb abu-ali" > > scribbled: > > > Hi, > > > > I'm parsing an xml file and get an error when dereferencing a ha

Re: issue with dereferencing a hash

2010-11-03 Thread Jim Gibson
On 11/3/10 Wed Nov 3, 2010 1:13 PM, "galeb abu-ali" scribbled: > Hi, > > I'm parsing an xml file and get an error when dereferencing a hash. I get an > error saying "Not a HASH reference as line 15." > Not sure where my syntax is off. Your syntax is fine. What is wrong is that one of the elem

issue with dereferencing a hash

2010-11-03 Thread galeb abu-ali
Hi, I'm parsing an xml file and get an error when dereferencing a hash. I get an error saying "Not a HASH reference as line 15." Not sure where my syntax is off. thanks, galeb My script is: #!/usr/local/bin/perl # parse_xml_OMap.pl use strict; use warnings; use Data::Dumper; use XML::Simple