walto has asked for the wisdom of the Perl Monks concerning the following question:
The Output is#!/usr/bin/perl -w use strict; while () { my $wait = 6000; my $time_now= time; &wait ($wait); print time-$time_now,"\n"; } sub wait{ my $time =@_; sleep $time; }
Any ideas how this poor subroutine can get some more sleep?1 1 1 ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Subroutine does not sleep
by hgolden (Pilgrim) on Oct 06, 2006 at 14:29 UTC | |
|
Re: Subroutine does not sleep
by monkey_boy (Priest) on Oct 06, 2006 at 14:29 UTC | |
|
Re: Subroutine does not sleep
by davorg (Chancellor) on Oct 06, 2006 at 14:31 UTC | |
|
Re: Subroutine does not sleep
by arkturuz (Curate) on Oct 06, 2006 at 14:34 UTC | |
|
Re: Subroutine does not sleep
by kwaping (Priest) on Oct 06, 2006 at 14:54 UTC | |
by Anonymous Monk on Oct 06, 2006 at 15:35 UTC |