Fayland 林 > MooseX-Dumper-0.02 > MooseX::Dumper

Download:
MooseX-Dumper-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.02   Source  

NAME ^

MooseX::Dumper - Dumper with roles

SYNOPSIS ^

    use MooseX::Dumper;

    my $dumper = MooseX::Dumper->new_with_traits(
        traits => ['Perltidy', 'HTML'],
        dumper_class => 'Data::Dump',
    );
    print $dumper->Dumper(\$hash, \@array);

DESCRIPTION ^

METHODS ^

new_with_traits

traits

Moose Roles, check MooseX::Dumper::Roles::Perltidy and MooseX::Dumper::Roles::HTML

dumper_class

Data::Dumper by default. but you still have choice to use Data::Dump or others.

    my $dumper = MooseX::Dumper->new( dumper_class => 'Data::Dump' );

Dumper

    print $dumper->Dumper(\$hash, \@array);

AUTHOR ^

Fayland Lam, <fayland at gmail.com>

COPYRIGHT & LICENSE ^

Copyright 2009 Fayland Lam, all rights reserved.

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