Re: [Module::Build] ask() and you will receive
Status: Beta
Brought to you by:
kwilliams
From: David W. <da...@ki...> - 2006-04-10 14:01:01
|
On Apr 10, 2006, at 01:25, Randy W. Sims wrote: > Thanks! There are some usefull ideas here. I'll probably keep > things simple for the 0.28 release, but I definately see things > like tieing it into the new options in the next release. I found the environ option very useful for, e.g., PostgreSQL settings. > Might possibly go ahead and add the callback; this very much echos > the options interface. It has a multi-option type, and callbacks > via the on_validate handler. OTOH, the user could do this via. > > my $need_answer = 1; > while ($need_answer) { > my $ans = $mb->ask(...); > $need_answer = !valid_answer( $ans ); > } > > So a handler only adds a little bit of sugar... Yes, but it's cleaner to use a callback, at least from the user's point of view. Best, David |