CXC::Data::Visitor
CXC::Data::Visitor provides a means of performing a depth first
traversal of a data structure. There are similar modules on CPAN ("SEE
ALSO"); this module provides a few extras:
* The traversal may be aborted.
* A container (hash or array) may be immediately revisited if the
callback requests it.
* An element whose value is a container may be revisited after the
container is visited if the callback requests it.
* User selectable behavior upon detection of a traversal cycle.
* The complete path from the structure route to an element (both the
ancestor containers and the keys and indexes required to traverse
the path) is available.
INSTALLATION
This is a Perl module distribution. It should be installed with whichever
tool you use to manage your installation of Perl, e.g. any of
cpanm .
cpan .
cpanp -i .
Consult http://www.cpan.org/modules/INSTALL.html for further instruction.
Should you wish to install this module manually, the procedure is
perl Build.PL
./Build
./Build test
./Build install
COPYRIGHT AND LICENSE
This software is Copyright (c) 2024 by Smithsonian Astrophysical
Observatory.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007