RE: parsing XML code -> problem with HASH

2001-05-03 Thread Grant McLean
.web.co.nz| 20 Customhouse Quay Internet Solutions | Tel: +64 4 495 8250 | Box 1195, Wellington Awesome service| Fax: +64 4 495 8259 | New Zealand > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 02, 2001 10:58 PM > To

Re: parsing XML code -> problem with HASH

2001-05-02 Thread Me
I'm not sure what you are saying your problem is, and I may have this wrong, but since no one else has answered, I'll have a go. To generate a new, anonymous hash that is a copy of an existing named hash, use {}. Put the {} brackets around some expression that can be seen by perl as a hash, eg:

parsing XML code -> problem with HASH

2001-05-02 Thread Mika . P . Aho
Hi, I am having a small problem while parsing the XML code. First of all, here comes snip of the sourcecode: ... if ( $NN->[$j] eq "OBU" ) # if OBU was found... { $OBU = $NN->[$j+1]; for $e ( 0..@$OBU ) # loop through the content of OBU { if ( ref($OBU->[$e]) eq "HASH" ) { $