Alberto Simões | 26 Jan 2011 23:20
Picon
Favicon
Gravatar

Looking to parameters to Build.PL

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

Thanks
--

-- 
Alberto Simões

David Golden | 26 Jan 2011 23:25
Picon
Gravatar

Re: Looking to parameters to Build.PL

2011/1/26 Alberto Simões <albie <at> alfarrabio.di.uminho.pt>:
> 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  <at> 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.

-- David

Alberto Simões | 26 Jan 2011 23:28
Picon
Favicon
Gravatar

Re: Looking to parameters to Build.PL


On 26/01/2011 22:25, David Golden wrote:
> 2011/1/26 Alberto Simões<albie <at> alfarrabio.di.uminho.pt>:
>> 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  <at> 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


Gmane