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 ...
In reply to Subroutine does not sleep by walto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |