Re: Looking to parameters to Build.PL

Alberto Simões <[email protected]> Wed, 26 Jan 2011 22:28:41 +0000
Newsgroups gmane.comp.lang.perl.modules.module-build
Organization Departamento de Informática - Universida de do Minho
Message-ID <[email protected]>

On 26/01/2011 22:25, David Golden wrote:
> 2011/1/26 Alberto Simões<[email protected]>:
>> Hello
>>
>> Is there any easy way to peek the parameters added when run Build.PL?
>>
>> That is:
>>
>>   perl Build.PL freeling_prefix=/my/strange/prefix
>
> Override "new", get the object from the SUPER::new and interrogate the
> object before returning it.
>
> Or override "cull_args" and inspect @ARGV before calling
> SUPER::cull_args, perhaps?
>
> Parameter processing is a complex given the potential for PERL_MB_OPT,
> .modulebuildrc files and command line arguments.

Damn :(
add it to the wishlist :D

I will stick to ask the user to use an environment variable.
Thanks :)
-- 
Alberto Simões