Win32::Readch - Read individual characters from the keyboard using Win32::Console
use Win32::Readch qw(readch_block getstr_noecho); local $| = 1; print 'Press a single keystroke: '; my $ch1 = readch_block; print "Character '$ch1' has been pressed\n\n"; my $password = getstr_noecho('Please enter a password: '); print "Your password is '$password'\n";
Klaus Eichner <klaus03@gmail.com>
Copyright (C) 2012 by Klaus Eichner
All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the artistic license 2.0, see http://www.opensource.org/licenses/artistic-license-2.0.php
To install Win32::Readch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::Readch
CPAN shell
perl -MCPAN -e shell install Win32::Readch
For more information on module installation, please visit the detailed CPAN module installation guide.