Re: Looking to parameters to Build.PL
David Golden <[email protected]> Wed, 26 Jan 2011 17:25:52 -0500
| Newsgroups | gmane.comp.lang.perl.modules.module-build |
|---|---|
| Message-ID | <[email protected]> |
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. -- David