perlfaq5 - How do I do a tail -f in perl?

[email protected] ("Ido Trivizki") Sun, 16 Apr 2006 16:31:52 +0200
Newsgroups perl.perlfaq.workers
Message-ID <[email protected]>
In perlfaq5 - How do I do a tail -f in perl? it says: "If this still doesn't
work, look into the POSIX module. POSIX defines the clearerr() method...",
while this code:
use POSIX 'clearerr';
clearerr();

Produces: "Use method IO::Handle::clearerr() instead"..
And so the POSIX.pm docs claim:
*clearerr*
Use the method IO::Handle::clearerr() <#item_clearerr> instead, to reset the
error state (if any) and EOF state (if any) of the given stream.
Thanks,
Ido Trivizki