in reply to MakeMaker and Library filename extensions
Do the assigning of the alternate value(s) in a module (say, Config_alt.pm) and load that module before you run the Makefile.PL:use Config; use warnings; use strict; print $Config{cc}, "\n"; my $obj = tied %Config::Config; $obj->{cc} = 'garbage'; print $Config{cc}, "\n"; __END__ Outputs: gcc garbage
Or, if you want Config_alt.pm to be automatically loaded every time perl is run, just set the PERL5OPT environment variable to -MConfig_altperl -MConfig_alt Makefile.PL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: MakeMaker and Library filename extensions
by Anonymous Monk on Jan 19, 2013 at 04:25 UTC | |
by syphilis (Archbishop) on Jan 21, 2013 at 04:30 UTC | |
by Anonymous Monk on Jan 21, 2013 at 22:27 UTC |