Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Aug 2005 21:38:15 -0400
From:      Michael Beattie <mtbeedee@gmail.com>
To:        Wouter van Rooij <aentgood@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: perl <stdin>
Message-ID:  <d4b4435a0508031838516cd4d9@mail.gmail.com>
In-Reply-To: <7603e5d8050803181766be524b@mail.gmail.com>
References:  <7603e5d805080317593a046eec@mail.gmail.com> <7603e5d8050803181766be524b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/3/05, Wouter van Rooij <aentgood@gmail.com> wrote:
> \
>=20
> Hello,
>=20
> 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 =3D <STDIN>
> I would like to get the input like this: ********
>=20

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d4b4435a0508031838516cd4d9>