Sub::Data::Recursive - Recursive invoker
use Sub::Data::Recursive; use Data::Dumper; my $hash = +{ bar => +{ baz => 2 }, qux => 1, }; Sub::Data::Recursive->invoke( sub { $_[0]++ }, $hash, ); print Dumper($hash); # $VAR1 = { # 'bar' => { # 'baz' => 3 # }, # 'qux' => 2 # };
Sub::Data::Recursive is recursive invoker.
invoke subroutine recursively
massively invoke subroutine recursively
Pass args with $context and $keys (in case of `HASH`)
Sub::Data::Recursive is hosted on github <http://github.com/bayashi/Sub-Data-Recursive>
Welcome your patches and issues :D
Dai Okabayashi <bayashi@cpan.org>
This module has forked from Data::Recursive::Encode.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Sub::Data::Recursive, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sub::Data::Recursive
CPAN shell
perl -MCPAN -e shell install Sub::Data::Recursive
For more information on module installation, please visit the detailed CPAN module installation guide.