|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^2: Non blocking read from the consoleby soonix (Chancellor) |
| on Oct 18, 2024 at 20:39 UTC ( [id://11162319]=note: print w/replies, xml ) | Need Help?? |
|
the ReadKey(-1) (and the underlying system call) is non-blocking. At least OP doesn't hog the CPU as in the SYNOPSIS of Term::ReadKey, but uses usleep during the active waiting…
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||