NAME
Data::Transmute::Rules::TreeNodeHash::StringifyChildren - Stringify children attributes in tree nodes to make the tree more dump-friendly
VERSION
This document describes version 0.002 of Data::Transmute::Rules::TreeNodeHash::StringifyChildren (from Perl distribution Data-Transmute-Rules-TreeNodeHash-StringifyChildren), released on 2020-02-13.
DESCRIPTION
Tree is an interlinked data structure, where parent links to children and the children link back to their parents. This makes the dump of a tree node unwieldy; if you dump a node, you will end up dumping the whole tree.
This rule walks the tree structure and replaces the value of hash key 'children' to its stringified value. This effectively "clips" the children when dumping, which is sometimes desirable when debugging.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Data-Transmute-Rules-TreeNodeHash-StringifyChildren.
SOURCE
Source repository is at https://github.com/perlancar/perl-Data-Transmute-Rules-TreeNodeHash-StringifyChildren.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Transmute-Rules-TreeNodeHash-StringifyChildren
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
SEE ALSO
Data::Transmute::Rules::TreeNodeHash::StringifyParent
More specialized tree dumpers, e.g.: Tree::Dump, Tree::To::TextLines.
Partial dumpers, e.g. Data::Dump::Partial.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2020 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.