Just use ReadKey in timed mode:
#! perl -slw use strict; use Term::ReadKey; ReadMode 4; my( $count, $c ); until( defined( $c = ReadKey( 1 ) ) ) { print ++$count; } ReadMode 0;
In reply to Re: Parent process finished. How to exit the child process.
by BrowserUk
in thread Parent process finished. How to exit the child process.
by ybnormal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |