in reply to
iterators: traversing arbitrary data structure
Look at how
Data::Dumper
does it. Essentially, you will want to use
Scalar::Util
's reftype() and go from there.
My criteria for good software:
Does it work?
Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
Comment on
Re: iterators: traversing arbitrary data structure
In Section
Seekers of Perl Wisdom