Finally, the actual time resolution may be imprecise, with the
timeout period being accurate to plus or minus one second. You may
end up with a timeout that varies between 9 and 11 seconds. For
granularity finer than one second, you can use
Perl's four-argument version of select(
), leaving the first three arguments undefined. Other
techniques exist, but they will not help with the task in question,
in which we use alarm( ) to implement timeouts.
![Previous](../images//txtpreva.gif) | ![Home](../images//txthome.gif) | ![Next](../images//txtnexta.gif) |
6.9. Handling the "User Pressed Stop Button" Case | ![Book Index](../images//index.gif) | 6.11. Generating Correct HTTP Headers |