[Thamesvalley-pm] Equivalent to Term::ReadKey
dave at dave.org.uk
Fri Jun 27 06:27:42 PDT 2008
Quoting Greg Matthews <gmatt at nerc.ac.uk>:
> Red Hat Enterprise (in its infinite wisdom) chooses not to ship
> Term::ReadKey with their perl.
Well, given that Term::ReadKey isn't part of the standard Perl
distribution, that's not entirely surprising :)
> Is there an equivalent to the following
> that will be portable to an unmodified RHEL host:
> ReadMode 'noecho';
> $pass0 = ReadLine(0);
> ReadMode 'normal';
> chomp $pass0;
> print "\n";
> exit unless $pass0;
Perhaps you could just grab the code from the Term::ReadKey module and
use that? Although that might be harder than it looks as Term::ReadKey
has an an XS portion.
Looks like RPMForge have a perl-Term-ReadKey rpm available. The path
of least resistance might be to install that.
More information about the Thamesvalley-pm