On Thursday, October 16, 2003, at 07:56 PM, Andy Lester wrote:


what is the correct method of asking for input from the
console when running tests?

In the test, or in the Makefile.PL?


Assuming the latter, look at the WWW::Mechanize or LWP Makefile.PLs.

If the former, how does the test differ from any other Perl program?


The two are basically the same situation, from the point of view that you don't want to do any asking (i.e., "hanging") if there's a program instead of a human in charge.

Module::Build provides some methods for this, its prompt() and y_n() methods. You can dig into them if you're interested.

-Ken



Reply via email to