This is a FAQ :
C:\perldoc -q alarm
Found in C:\Perl\lib\pod\perlfaq8.pod
How can I sleep() or alarm() for under a second?
If you want finer granularity than the 1 second that the sleep()
function provides, the easiest way is to use the select()
function as
On Feb 10, Angerstein said:
sub selfalarm {
$waittime = @_;
Above is your problem. You are assigning the NUMBER of elements in @_ to
$waittime, not the first element. Use one of the following:
my $waittime = shift;
my ($waittime) = @_;
my $waittime = $_[0];
$ppid = getppid();
On Mon, 10 Feb 2003 12:41:57 +0100, [EMAIL PROTECTED] (Angerstein)
wrote:
If I need an alarm signal alarm(), in less than 1 second what can I do?
Interestingly enough, this just showed up on perlmonks this morning.
http://www.perlmonks.org/index.pl?node_id=23402
Simultaneous alarms under 1 sec