in reply to Re: How do i determine if an XML array element exists in a hash?
in thread How do i determine if an XML array element exists in a hash?

Hello all, This is Fantastic! However, there is one minor issue. With the sample xml above, if I return just one 'account', I get the error: "Bad index while coercing array into hash..." Jenda was correct - it is not always an array ref, and what you have above, handles 1 level - at the "asset" or 'sub' level. Would I set up a 'Rules' sub-routine inside of a 'Rules' sub-routine? Would that even work? Thank you again, -Fred
  • Comment on Re^2: How do i determine if an XML array element exists in a hash?

Replies are listed 'Best First'.
Re^3: How do i determine if an XML array element exists in a hash?
by Jenda (Abbot) on Dec 27, 2011 at 20:43 UTC

    Depends on how do you "return just one account". Show me the exact code that gives you the error.

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