in reply to Parent process finished. How to exit the child process.
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; [download]