in reply to users online script not accurate

> my $timenow = time();
> $minutes = $minutes * 60;

How do you get 'em $minutes?

> my $timemin = $timenow - $minutes;

Do you realize that you are subtracting minutes from a value
which is in seconds (since Unix epoch)?