EvdB has asked for the wisdom of the Perl Monks concerning the following question:
Is there an elegant way to acheive in my Build.PL something like this:
use Module::Build; my $build = Module::Build->new( module_name => 'Foo::Bar', license => 'perl', ); my $install_dir = $build->prompt( "Where should I install to?", '/usr/local/install_here'); # This is what I am looking for. ################## # $build->set( install_base => $install_dir ); # # ################################################### $build->create_build_script;
I can achieve the above in other ways but none elegant. What I want to be able to do is change a setting after creating the build object.
If I am missing something obvious please let me know - I have read the docs and have even grep '^sub' Module/Build/Base.pm for something like 'set'.
--tidiness is the memory loss of environmental mnemonics
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting values in Module::Build
by chromatic (Archbishop) on Mar 18, 2004 at 18:02 UTC | |
by EvdB (Deacon) on Mar 19, 2004 at 11:57 UTC | |
|
Re: Setting values in Module::Build
by xdg (Monsignor) on Mar 18, 2004 at 23:28 UTC | |
by EvdB (Deacon) on Mar 19, 2004 at 12:03 UTC | |
by Aristotle (Chancellor) on Mar 20, 2004 at 10:10 UTC | |
by EvdB (Deacon) on Mar 20, 2004 at 11:29 UTC |