in reply to Re: Any ideas for using perl as a simple pulse generator?
in thread Any ideas for using perl as a simple pulse generator?

sleep(time() - $target);

I think you meant

sleep($target - time());