in reply to Re^2: use strict with format and tailing a file
in thread use strict with format and tailing a file
Time::HiRes is included with perl5.8.0 and up. If you are on an older perl, you can try just commenting out the use Time::HiRes line in File::Tail. Then it will use the normal time() and sleep() functions that don't have subsecond granularity.
I'm not sure what you are proposing to do other than time waiting...File::Tail tries to pick a reasonable wait period, and you can specify a maximum interval. You can even specify a maxinterval of "0 but true" if you really don't want to wait, but that sounds like a bad idea to me. (Haven't actually tried it, but looking at the code, I think it will work.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: use strict with format and tailing a file
by penantes (Acolyte) on Feb 11, 2005 at 10:42 UTC | |
by ysth (Canon) on Feb 11, 2005 at 19:15 UTC | |
by penantes (Acolyte) on Feb 17, 2005 at 12:17 UTC |