Papo Napolitano wrote:

> Hi!
>
> I'm using the "select undef, undef, undef, 60" trick to sleep for 60
> seconds.
> But it seems to not work after I do a couple of forks like this:

...

> Any clue as to what could be causing this behaviour?

Yes.

You are using a function for its side effects.  The particular interaction with
fork I'm not sure about, but Perl has a much more direct means to use timing in
an application

If you need greater granularity than the seconds use in the sleep function,
check out Time::HiRes.  It's sweet--and direct.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to