I'm working on a message system that uses unix terminal, so to make message output more user friendly, I wanted to hide <STDIN>
input after pressing enter button to use it in another message output.
my $user = "Someone";
my $message = <STDIN>; #must show what does user type but should hide the message after pressing enter
chomp $message;
print messagefile "<$user> $message\n";
I've read in forums that some method is using Term::ReadKey
but unfortunately I'm not able to do that since that module does not present in the system.