in reply to Re: Recursive data structure munging - arrayrefs to hashrefs
in thread Recursive data structure munging - arrayrefs to hashrefs
Thanks - that was, obviously, incorrect. The structure does not necessarily alternate between @ and % - but I'm fairly certain that there's no AoA component anywhere (and lots of HoH structures.)
Your code works for $foo, but unfortunately not for the more complex structure - "Not an ARRAY reference" errors, unsurprisingly. I'm pretty sure it's that assumption that the next level down must be an array... as I've said, it's arbitrary depth. I appreciate your effort, though!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Recursive data structure munging - arrayrefs to hashrefs (updated x2)
by haukex (Archbishop) on Aug 31, 2017 at 20:30 UTC |