10 lines
121 B
Perl
10 lines
121 B
Perl
|
use Term::ReadKey;
|
||
|
|
||
|
ReadMode('cbreak');
|
||
|
|
||
|
$char = ReadKey(0);
|
||
|
|
||
|
ReadMode('normal');
|
||
|
|
||
|
print "You typed: $char.\n";
|