I have a binary tree as the backend for a tied hash. I'd like to be able to have it serialized with things like Data::Dumper etc., which requires the FIRSTKEY and NEXTKEY methods.
My question is: what's the best way, given these constraints?
I expect the only way is to use a stack. STaring from the root node:
Is there a more efficient way?
In reply to Serializing Trees using FIRSTKEY/NEXTKEY methods? by rrwo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |