Hi, Radek wrote: > I'd like to pass some parameter with this result: > > perl Makefile.PL parameter1 > > I looked into PAR::Dist and am afraid it's impossible.
I don't think the simple case would be that hard to implement: Look at the "blib_to_par" sub in PAR/Dist.pm. Suppose you added another optional named argument "makefile_pl_arguments" which would be either a string or an array reference. Pass that parameter to the _build_blib function. Pass it to the _system_wrapper. Done.
BUT: If you did that, you'd also want to cover the cases of arguments to "make", "./Build" as well as "perl ./Build.PL". I'm not sure what's the best way to do that because a) they might require very different arguments and b) adding *four* new options would be a horrible kludge.
In general, you could just do what _build_blib does and add your parameters manually before you run blib_to_par() as usual. _build_blib isn't all that complicated.
Cheers, Steffen
