"be consistent" | |
PerlMonks |
Re^2: Manipulate deepest values in complex hash structuresby LanX (Saint) |
on Apr 29, 2013 at 21:21 UTC ( [id://1031287]=note: print w/replies, xml ) | Need Help?? |
enough theory, now practical code:
Output
Cheers Rolf ( addicted to the Perl Programming Language)
UPDATEof course you could extend walk to call optional $coderefs on every node and specify them as named parameters: walk $ref , SCALAR => sub { print $_[0] } , ARRAY => sub { Dump $_[0] }, ... But I think the original code is so small thats its easier to copy and manipulate it in place for different needs.
In Section
Seekers of Perl Wisdom
|
|