lewnewby has asked for the wisdom of the Perl Monks concerning the following question:
I am attempting to collect information based upon prompts generated within the script. Using perl-5.16.3 on MacOSX this code works perfectly. If I attempt to use it on a windows machine with Activeperl or Strawberry perl (both also 5.16.3) installed it never returns after entering the string and hitting the enter key.
Any assistance or alternative would be appreciated. Please keep in mind that in the original script I am asking for a password at one of th prompts so proper obfuscation needs to be available.
Here is the code I am using for the prompt in one of the entries. It must not be a empty string, when I enter something at the prompt it doesn't even print out the value or an error or anything.
use 5.14.0; use strict; use warnings; use IO::Prompter [-v]; my $string=""; do { $string = prompt("Input a string:"); print "$string\n"; } until ($string ne "");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO::Prompter not returning from Enter keypress using Activeperl
by davido (Cardinal) on Jun 19, 2013 at 01:23 UTC |