Active Perl on Windows XP error message stty??

G'day peoples

I'm new to Perl and i have just set up Active Perl on Windows Xp
I have written a basic program that works on the unix box but when i try to run it on Windows Xp

I get the error message "" stty is not a recognised as an internal or external command, operable program or batch file""

I was wondering if i need to Install a module and if so which one and How??

this was my program Very basic but i just want it to run so i can continue learning..


use Getopt::Std;             

if($opt_a) { print "Adding user $opt_a:$!\n";
           print "Enter password: ";
      system ("stty -echo");
      chomp $input;
      system ("stty echo");
      print ($input,"\n");
if($opt_h) { print "Hello World\n";}


Thanks MAte for your time..
Who is Participating?
ozoConnect With a Mentor Commented:
use Term::ReadPassword;
stty is a Unix command. It doesn't exist on Windows. You'll need to find an alternative way of turning off the echoing of text. ozo's suggestion looks like a good one.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.