Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 20223
Status: resolved
Priority: 0/
Queue: Module-Build

Owner: Nobody in particular
Requestors: NIKC [...]

Bug Information
Severity: (no value)
Broken in: 0.2611
Fixed in: (no value)

Subject: y_n() broken in unattended mode
Download (untitled) / with headers
text/plain 735b
I've got a Module::Build script, see it at It asks the user questions using prompt() and y_n(). Under M::B 0.2610 I can run perl Build.PL < /dev/null and, as documented, the default answers to the questions are accepted and the script completes. If I run the same command with M::B 0.2801 the first call to y_n() enters an infinite loop, printing the question to the screen over and over. I've just checked, and this build script is enough to reproduce the problem. Works under 0.2610, fails with 0.2801. #!/usr/bin/perl use Module::Build; my $foo = Module::Build->y_n('A yes/no question', 'y'); print "Answer was $foo\n"; N
Download (untitled) / with headers
text/plain 107b
Thanks, I've committed a fix for this in the repository. It'll be part of the next bugfix release. -Ken

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to