zmanz
asked on
Don't want to see user input
I want to prompt the user for input
and assign the user input to a scalar
variable but I don't want the user input
to be displayed as it is being typed.
How do I accomplish this ? Thanks.
and assign the user input to a scalar
variable but I don't want the user input
to be displayed as it is being typed.
How do I accomplish this ? Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
system "stty -echo";
print "Enter :";
chomp($in=<STDIN>);
system "stty echo";
This solution is provided in the Programming PERL book