Commit | Line | Data |
---|---|---|
7292dc67 | 1 | package ExtUtils::MakeMaker::Config; |
2 | ||
7292dc67 | 3 | use strict; |
a592ba15 | 4 | |
cb06ebec | 5 | our $VERSION = '6.55_02'; |
a592ba15 | 6 | |
7292dc67 | 7 | use Config (); |
8 | ||
9 | # Give us an overridable config. | |
a592ba15 | 10 | our %Config = %Config::Config; |
7292dc67 | 11 | |
12 | sub import { | |
13 | my $caller = caller; | |
14 | ||
a592ba15 | 15 | no strict 'refs'; ## no critic |
7292dc67 | 16 | *{$caller.'::Config'} = \%Config; |
17 | } | |
18 | ||
19 | 1; | |
20 | ||
21 | ||
22 | =head1 NAME | |
23 | ||
24 | ExtUtils::MakeMaker::Config - Wrapper around Config.pm | |
25 | ||
26 | ||
27 | =head1 SYNOPSIS | |
28 | ||
29 | use ExtUtils::MakeMaker::Config; | |
30 | print $Config{installbin}; # or whatever | |
31 | ||
32 | ||
33 | =head1 DESCRIPTION | |
34 | ||
35 | B<FOR INTERNAL USE ONLY> | |
36 | ||
37 | A very thin wrapper around Config.pm so MakeMaker is easier to test. | |
38 | ||
39 | =cut |