thanx everyone who helped me.
One question to the sleep thing: I need this time wait process for a record
script, fetching an MP3 stream and recording it.
I get the stream befor i wait for the starttime ! What happend to the tcp-
stream if I use sleep ?
By now, i only write to data, if time <= gettime.

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von
Keith Calvert Ivey
Gesendet: Dienstag, 17. April 2001 15:30
An: [EMAIL PROTECTED]
Betreff: Re: time()


Kristofer Wolff <[EMAIL PROTECTED]> wrote:

> while($get_time <= $local_time)
> {
>       # wait
> }
> # start sub !

$Bill has already answered your main question, but I wanted to
point out that if you're not doing anything in the waiting
loop you may be better off replacing the loop with something
like sleep(time() - $get_time).

--
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to