
MooseX::Dumper - Dumper with roles

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


Moose Roles, check MooseX::Dumper::Roles::Perltidy and MooseX::Dumper::Roles::HTML
Data::Dumper by default. but you still have choice to use Data::Dump or others.
my $dumper = MooseX::Dumper->new( dumper_class => 'Data::Dump' );
print $dumper->Dumper(\$hash, \@array);

Fayland Lam, <fayland at gmail.com>

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.