Add built local::lib
[catagits/Gitalist.git] / local-lib5 / lib / perl5 / Module / Build / Dumper.pm
1 package Module::Build::Dumper;
2 use strict;
3 use vars qw($VERSION);
4 $VERSION = '0.35';
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;