Skip Menu |

This queue is for tickets about the IO-Prompter CPAN distribution.

Report information
The Basics
Id: 106522
Status: rejected
Priority: 0/
Queue: IO-Prompter

People
Owner: Nobody in particular
Requestors: drennan [...] panix.com
Cc:
AdminCc:

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



Subject: First prompt and last menu prompt skipped
Date: Tue, 18 Aug 2015 22:19:37 +0300
To: bug-IO-Prompter [...] rt.cpan.org
From: Daniel Drennan <drennan [...] panix.com>
I just start working with IO::Prompter, and have run into some strange behavior using just a basic script and examples from the CPAN page. This is perl 5, version 22, subversion 0 (v5.22.0) built for darwin-thread-multi-2level our $VERSION = '0.004013'; I'm working on a Mac, Snow Leopard 10.6.8. At first I was using a much more complex script, and was using IO::Prompter in a loop going over file names. The first prompt never showed up. I moved everything to a bare-bones script with just the examples that are on the CPAN page, and the same issue occurred; the first prompt never appeared, and the final prompt of the menu script never appeared either. On a whim I replaced the use line with use IO::Prompter -argv; and this error message showed up: Use of uninitialized value $input in pattern match (m//) at /Volumes/DEV0/lib/perl5/site_perl/5.22/IO/Prompter.pm line 251. But the first prompt now shows up. The final prompt of the menu still doesn't though.... I don't know if this is because I'm using 5.22? Or something else? Not even sure how to debug what's going on.... Thanks for any help! Daniel Script: #!/Volumes/DEV0/bin/perl use strict; use warnings; use IO::Prompter -argv; my $passwd = prompt 'Enter your password', -echo=>'*'; my $selection = prompt 'Choose wisely...', -menu => { wealth => [ 'moderate', 'vast', 'incalculable' ], health => [ 'hale', 'hearty', 'rude' ], wisdom => [ 'cosmic', 'folk' ], }, '>';
Subject: Re: [rt.cpan.org #106522] First prompt and last menu prompt skipped
Date: Wed, 19 Aug 2015 09:50:35 +1000
To: bug-IO-Prompter [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Hi Daniel. Thanks so much for the bug report. Unfortunately, I can't replicate the behaviour you're experiencing. The code runs correctly under Perl v5.22 on my version of Darwin (MacOS 10.9.5) So I'm not sure how to go about helping you. Can I ask whether you have Term::ReadKey installed? Damian
Subject: Re: [rt.cpan.org #106522] First prompt and last menu prompt skipped
Date: Fri, 21 Aug 2015 08:24:55 +0300
To: bug-IO-Prompter [...] rt.cpan.org
From: Daniel Drennan <drennan [...] panix.com>
Hi Damian-- Thanks so much for the quick reply. Once again I embarrass myself, knowing just enough about things to almost be a danger to myself and my computer, as well as a nuisance to programmers and module builders. I realized I had a slightly broken MacPorts install (now cleaned up), and for good measure I reinstalled perl as well as the modules. All is fine now.... Apologies. On Tue, 18 Aug 2015 19:58:51 -0400, damian@conway.org via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=106522 > > > Hi Daniel. Thanks so much for the bug report. > > Unfortunately, I can't replicate the behaviour you're experiencing. > The code runs correctly under Perl v5.22 on my version of Darwin > (MacOS 10.9.5) So I'm not sure how to go about helping you. > > Can I ask whether you have Term::ReadKey installed? > > Damian >
Subject: Re: [rt.cpan.org #106522] First prompt and last menu prompt skipped
Date: Fri, 21 Aug 2015 17:49:09 +1000
To: bug-IO-Prompter [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Hi Daniel. I'm glad you've been able to solve your issue. Thanks for letting me know. Damian