Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Pasting text when capturing user input only prints one character if system call is made in the loop

by roboticus (Chancellor)
on May 02, 2019 at 04:12 UTC ( [id://1233260]=note: print w/replies, xml ) Need Help??


in reply to Pasting text when capturing user input only prints one character if system call is made in the loop

Allasso:

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.

  • Comment on Re: Pasting text when capturing user input only prints one character if system call is made in the loop

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1233260]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-24 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found