my $time =@_;
You're evaluating the array, @_, in scalar context. So you get the number of elements. Try using this instead:
my ($time) = @_;
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Subroutine does not sleep
by davorg
in thread Subroutine does not sleep
by walto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |