You're calling the array in scalar context, so it's returning the number of elements in it (which is 1). Try using shift: my $time=shift;
Hays
In reply to Re: Subroutine does not sleep
by hgolden
in thread Subroutine does not sleep
by walto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |