Initial Commit
This commit is contained in:
41
database/perl/lib/ExtUtils/MakeMaker/Config.pm
Normal file
41
database/perl/lib/ExtUtils/MakeMaker/Config.pm
Normal file
@@ -0,0 +1,41 @@
|
||||
package ExtUtils::MakeMaker::Config;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
our $VERSION = '7.58';
|
||||
$VERSION =~ tr/_//d;
|
||||
|
||||
use Config ();
|
||||
|
||||
# Give us an overridable config.
|
||||
our %Config = %Config::Config;
|
||||
|
||||
sub import {
|
||||
my $caller = caller;
|
||||
|
||||
no strict 'refs'; ## no critic
|
||||
*{$caller.'::Config'} = \%Config;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
||||
=head1 NAME
|
||||
|
||||
ExtUtils::MakeMaker::Config - Wrapper around Config.pm
|
||||
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
use ExtUtils::MakeMaker::Config;
|
||||
print $Config{installbin}; # or whatever
|
||||
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
B<FOR INTERNAL USE ONLY>
|
||||
|
||||
A very thin wrapper around Config.pm so MakeMaker is easier to test.
|
||||
|
||||
=cut
|
||||
Reference in New Issue
Block a user