This seems to work for me:
use strict; use warnings; use Win32::Console; my $console = Win32::Console->new( STD_OUTPUT_HANDLE ); my $timerlength = 5; # or whatever while ( 1 ) { sleep $timerlength; $console->Write( "\n" ); }
If you have ActiveState perl, Win32::Console is packaged with it.
In reply to Re: using perl to "press enter"
by Not_a_Number
in thread using perl to "press enter"
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |