Think about Loose Coupling | |
PerlMonks |
Re: Pasting text when capturing user input only prints one character if system call is made in the loopby roboticus (Chancellor) |
on May 02, 2019 at 04:12 UTC ( [id://1233260]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|