See also Re: Trouble using XML::LibXML for another discussion of the hash iteration problem. (Oh, wait... Since it's the same problem from the same OPer with almost the same code statement, and since the OPer didn't pay any attention to the previous post, it's unlikely any attention will be paid now, so nevermind...)