Gulliver has asked for the wisdom of the Perl Monks concerning the following question:
After the call to read_password STDIN stops working. It doesn't wait for user input. Any ideas?
#!/usr/bin/perl use strict; use warnings; use Term::ReadPassword::Win32; $Term::ReadPassword::Win32::USE_STARS = 1; my $pass1 = read_password(' sftp password: '); print "Password:$pass1,\n"; print "\nLoad template configuration? \n[Y/n] :"; chomp (my $ans=<STDIN>); #doesn't wait here for input print "ans=$ans,,,\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Term::ReadPassword::Win32 kills STDIN
by syphilis (Archbishop) on Feb 04, 2011 at 23:22 UTC | |
Re: Term::ReadPassword::Win32 kills STDIN
by furry_marmot (Pilgrim) on Feb 04, 2011 at 23:59 UTC | |
by Gulliver (Monk) on Feb 07, 2011 at 14:39 UTC | |
by furry_marmot (Pilgrim) on Feb 07, 2011 at 21:42 UTC | |
by Anonymous Monk on Apr 20, 2017 at 13:25 UTC |