Limbic~Region has asked for the wisdom of the Perl Monks concerning the following question:
#!/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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 4 arg select as an alternative to Time::HiRes ?
by IlyaM (Parson) on Mar 01, 2003 at 22:39 UTC | |
by Limbic~Region (Chancellor) on Mar 01, 2003 at 22:48 UTC | |
|
Re: 4 arg select as an alternative to Time::HiRes ?
by Abigail-II (Bishop) on Mar 02, 2003 at 12:31 UTC | |
|
Re: 4 arg select as an alternative to Time::HiRes ?
by crenz (Priest) on Mar 01, 2003 at 23:19 UTC | |
|
Re: 4 arg select as an alternative to Time::HiRes ?
by Aristotle (Chancellor) on Mar 02, 2003 at 01:04 UTC | |
by BrowserUk (Patriarch) on Mar 02, 2003 at 01:57 UTC | |
by Aristotle (Chancellor) on Mar 02, 2003 at 02:06 UTC | |
by BrowserUk (Patriarch) on Mar 02, 2003 at 13:12 UTC |