perl <stdin>

Michael Beattie mtbeedee at gmail.com
Thu Aug 4 01:38:16 GMT 2005


On 8/3/05, Wouter van Rooij <aentgood at gmail.com> wrote:
> \
> 
> Hello,
> 
> At the first place, sorry for my bad English.
> My question is:
> How can you, when you're writing a perl program, make a input
> (<stdin>) hidden, so that when someone is typing an input in the
> following program is hidden:
> #!/usr/bin/perl
> print "Your name:";
> $name = <STDIN>
> I would like to get the input like this: ********
> 

You might be able to redirect STDOUT to nowhere and then when there's
a character pressed write a '*' to STDOUT or something.


More information about the freebsd-questions mailing list