in reply to Re: My code (I can't figure out how to implicitly recurse)
in thread How to tie multilevel (multidimensional) hash?
Thanks for taking the time to help me out, perrin, I feel like I'm getting closer and closer to the answer!
Your code is close to what I'd like to do, but it'd be best if in the process of STORE()ing creates the node and then attempts to STORE the following dimension. That is, the statement $hash{ x }{ y } = 10; does all the nested ties, automatically. One of my requirements is that I don't know how many dimensions I may have to go, and I'd hate to manually tie() every time I add a key to a hash. I hope I'm doing more than autovivifying; I'm creating nodes and tie()ing them, as well as assigning them to the parent hash. If I could then have that node call STORE() and be able to give that STORE() meaningful parameters, I'd be done. But I can't figure out how to do that.
|
|---|