I expect you'll have a lot of trouble with trying to handle user input that way. When you call system, it forks off a new process which will inherit the standard input and output streams. I'd expect plenty of trouble with the other process possibly consuming/resetting the streams.
Based on your post, I'd suggest you instead use Term::ReadKey to get the ability to act on individual keypresses.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Pasting text when capturing user input only prints one character if system call is made in the loop
by roboticus
in thread Pasting text when capturing user input only prints one character if system call is made in the loop
by Allasso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |