in reply to Re: Walking a hash using Data::Walk (moddify/add keys)
in thread Walking a hash using Data::Walk

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.

  • Comment on Re^2: Walking a hash using Data::Walk (depth)