|
|
| There's more than one way to do things | |
| PerlMonks |
Re: changing vaules in perl -Vby syphilis (Canon) |
| on Mar 19, 2013 at 23:22 UTC ( #1024400=note: print w/ replies, xml ) | Need Help?? |
|
Here's a perlish approach as per the way that Mattia Barbon's ExtUtils::FakeConfig achieves the result: 2) Set the PERL5OPT environment variable to -MConfig_m With the perl5opt environment variable unset, 'perl -V:installsitebin' (and $Config{installsitebin}) still return their original value. But, when perl5opt is set correctly, 'perl -V:installsitebin' (and $Config{installsitebin}) will return the new value. Here's a Windows demo (where PERL5OPT is initially unset): One potential annoyance with setting the perl5opt environment variable system-wide is that every perl on the system needs to be able to load a Config_m.pm. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||