in reply to Re^2: Translating Terminal Input Code from Bash to Perl
in thread Translating Bash to Perl

Don't expect portability from shell builtins across multiple versions or multiple shells. Try w/o the -n3, but then you always need to press CR.
  • Comment on Re^3: Translating Terminal Input Code from Bash to Perl