On Tue, 2006-04-04 at 09:39 -0400, DiGregorio, Dave wrote: > I am trying to get a single character input from the command window > without requiring the user to hit enter. I have read in several places > that using stty and getc is not the best way to do this. Is there > another way that to do this that I am not finding? I am using windows > XP and perl 5.8.
There is a blurb about this in POSIX; see `perldoc POSIX` and search for 'POSIX::Termios'. You could also downlaod Term::Readkey from CPAN <http://search.cpan.org/~jstowe/TermReadKey-2.30/> It is easier to follow. -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>