Hi Lucas Rey,
I believe one of the major differences is that select lets you specify subsecond precision for the sleep duration.
My gut tells me I wouldn't expect a noticable difference between the two in terms of performance. But I'm confused why performance would matter for a function that effectively causes the script to hang?
If you want higher precision, have a look at Time::HiRes.
Regards,
-- Hauke D
Updated: Made wording a little more specific.
In reply to Re: Simple question about sleep function
by haukex
in thread Simple question about sleep function
by Lucas Rey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |