in reply to can't modify anonymous hash ({}) in scalar assignment

Apart from the syntax error there is one more possible problem. Are you sure XML::Simple returns the data in a consistent enough way? Without any options? What if some tag that may be repeated occurs just once in a particular file? Or some tag with optional attributes doesn't have them in some cases?

See Simpler than XML::Simple.

Jenda
Enoch was right!
Enjoy the last years of Rome.

  • Comment on Re: can't modify anonymous hash ({}) in scalar assignment

Replies are listed 'Best First'.
Re^2: can't modify anonymous hash ({}) in scalar assignment
by Anonymous Monk on Jul 26, 2010 at 23:13 UTC
    I'm not worried about it in this case because an ettx file is wholly predictable and all of my Dump tests have printed exactly what I needed.