in reply to get <STDIN> but don't require enter key

You can use Term::ReadKey to do this. For example:

use Term::ReadKey;

ReadMode(3);
my $key = ReadKey(0);
ReadMode(0);
  • Comment on Re: get <STDIN> but don't require enter key

Replies are listed 'Best First'.
Re: Re: get <STDIN> but don't require enter key
by Anonymous Monk on May 02, 2003 at 06:57 UTC
    Thanks. I downloaded the RPM, but am going through dependency hell. :( Kinda got busy here at work, but will play around w/ it in a bit. Thanks again
      To automatically grab dependencies, use CPAN.pm.
      perl -MCPAN -e 'install Term::ReadKey;'
      Should do the trick.