Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use Term::ReadKey; while(1) { while(not defined($firstkey=ReadKey(-1))) { print localtime(); print "\n"; } chomp($a=<STDIN>); if($a eq 'q') { exit; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: While loop insanity
by sauoq (Abbot) on Nov 02, 2002 at 01:32 UTC | |
|
Re: While loop insanity
by BrowserUk (Patriarch) on Nov 02, 2002 at 01:11 UTC |