This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Module-Build to CPAN version 0.4201
[perl5.git] / cpan / Module-Build / lib / Module / Build / Dumper.pm
CommitLineData
7a827510 1package Module::Build::Dumper;
738349a8
SH
2use strict;
3use vars qw($VERSION);
d320cf40 4$VERSION = '0.4201';
7a827510
RGS
5
6# This is just a split-out of a wrapper function to do Data::Dumper
7# stuff "the right way". See:
8# http://groups.google.com/group/perl.module.build/browse_thread/thread/c8065052b2e0d741
9
10use Data::Dumper;
11
12sub _data_dump {
13 my ($self, $data) = @_;
14 return ("do{ my "
738349a8 15 . Data::Dumper->new([$data],['x'])->Purity(1)->Terse(0)->Dump()
7a827510
RGS
16 . '$x; }')
17}
18
191;