Expand|Select|Wrap|Line Numbers
- use Term::ReadKey;
- print "Enter name: ";
- ReadMode 2; #Turn off keyboard echo
- $name = <>;
- ReadMode 0;
- print "$name \n";
1) perl test.pl < input.txt
2) cat input.txt | perl test.pl
Both returned the following error:
Expand|Select|Wrap|Line Numbers
- GetConsoleMode failed, LastError=|6| at i:/site/lib/Term/ReadKey.pm line 265.
Thanks