#!/usr/bin/perl -w use strict; print "awake\n"; select(undef,undef,undef,.75); print "awake\n";
Using the 4 arg select to sleep for sub 1 second intervals without Time::HiRes.
I am strictly asking if there is anything wrong with it. I came across it and thought it was neat and do not think it is an excuse not to use Time::HiRes.
Thanks - L~R
In reply to 4 arg select as an alternative to Time::HiRes ? by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |