The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Sub::Data::Recursive - Recursive invoker

SYNOPSIS

    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
    # };

DESCRIPTION

Sub::Data::Recursive is recursive invoker.

METHODS

invoke($code_ref, $hash [, $hash..])

invoke subroutine recursively

massive_invoke($code_ref, $hash [, $hash..])

massively invoke subroutine recursively

Pass args with $context and $keys (in case of `HASH`)

REPOSITORY

Sub::Data::Recursive is hosted on github <http://github.com/bayashi/Sub-Data-Recursive>

Welcome your patches and issues :D

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO

This module has forked from Data::Recursive::Encode.

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.