ooops, nevermind that,
depth is the trigger you want to usewhen the depth increases, you push @path, when the depth decreases, you pop @path
Its how its done in rehohy to visualize data like Re^3: Parsing a JSON response, Re: A "simple" question regarding accessing a value in a complex data structure., Re^2: Array of structures within an array of structures.
In reply to Re^2: Walking a hash using Data::Walk (depth)
by Anonymous Monk
in thread Walking a hash using Data::Walk
by PopeFelix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |