Data::Transmute::Rules::TreeNodeHash::StringifyChildren - Stringify children attributes in tree nodes to make the tree more dump-friendly
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.
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.
Please visit the project's homepage at https://metacpan.org/release/Data-Transmute-Rules-TreeNodeHash-StringifyChildren.
Source repository is at https://github.com/perlancar/perl-Data-Transmute-Rules-TreeNodeHash-StringifyChildren.
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.
Data::Transmute::Rules::TreeNodeHash::StringifyParent
More specialized tree dumpers, e.g.: Tree::Dump, Tree::To::TextLines.
Partial dumpers, e.g. Data::Dump::Partial.
perlancar <perlancar@cpan.org>
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.
To install Data::Transmute::Rules::TreeNodeHash::StringifyChildren, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Transmute::Rules::TreeNodeHash::StringifyChildren
CPAN shell
perl -MCPAN -e shell install Data::Transmute::Rules::TreeNodeHash::StringifyChildren
For more information on module installation, please visit the detailed CPAN module installation guide.