This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Updating Module::Build to 0.34
[perl5.git] / lib / Module / Build / Dumper.pm
1 package Module::Build::Dumper;
2 use strict;
3 use vars qw($VERSION);
4 $VERSION = '0.34';
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
10 use Data::Dumper;
11
12 sub _data_dump {
13   my ($self, $data) = @_;
14   return ("do{ my "
15           . Data::Dumper->new([$data],['x'])->Purity(1)->Terse(0)->Dump()
16           . '$x; }')
17 }
18
19 1;