[Module::Build] notes on notes
Status: Beta
Brought to you by:
kwilliams
|
From: Uri G. <ur...@st...> - 2003-12-31 07:32:24
|
ok, i rtfm'ed and see what the notes method does. so my first question
is why does new even handle a passed in args attribute (especially as it
is not documented nor meant to be used)?
the second question is how do we punish that scalawag dave for using an
undocumented feature and leading me down that evil path?
on a related note (sic), i have been looking at prompt and y_n. i had
written very similar subs in my soon to be deleted stem install script
and i had transplanted them to my build stuff. so i will replace them
with build's method (almost a drop in replacement). my prompts can ber
very long (using here docs of course) since i sometime describe the
queries in detail. now, i noticed that the example does the config
queries in Build.PL and stores the results in notes in the build
object. i was doing the queries in the install action. is there a reason
to do it one way or another? the only time i seem to need those values
is in the install action. also dave wrote something that writes out
those values into a stem module. if i need them in test script or
whatever, i could just use that module.
finally, in looking at y_n:
my $answer;
while (1) {
$answer = $self->prompt(@_);
return 1 if $answer =~ /^y/i;
return 0 if $answer =~ /^n/i;
print "Please answer 'y' or 'n'.\n";
}
any reason why the assignment to $answer isn't my'ed instead of doing it
before the loop?
inquiring minds want to know,
uri
--
Uri Guttman ------ ur...@st... -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
|