[Thamesvalley-pm] Equivalent to Term::ReadKey

Greg Matthews gmatt at nerc.ac.uk
Fri Jun 27 06:13:28 PDT 2008


Red Hat Enterprise (in its infinite wisdom) chooses not to ship 
Term::ReadKey with their perl. 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;

many thanks

GREG

-- 
Greg Matthews           01491 692445
Head of UNIX/Linux, iTSS Wallingford

-- 
This message (and any attachments) is for the recipient only. NERC
is subject to the Freedom of Information Act 2000 and the contents
of this email and any reply you make may be disclosed by NERC unless
it is exempt from release under the Act. Any material supplied to
NERC may be stored in an electronic records management system.



More information about the Thamesvalley-pm mailing list