15.9. Checking for Waiting Input15.9.2. SolutionUse the CPAN module Term::ReadKey, and try to read a key in non-blocking mode by passing it an argument of -1:
15.9.3. DiscussionThe -1 parameter to ReadKey indicates a non-blocking read of a character. If no character is available, ReadKey returns undef. 15.9.4. See AlsoThe documentation for the Term::ReadKey module from CPAN; Recipe 15.6
Copyright © 2003 O'Reilly & Associates. All rights reserved. |
|