Subject: | tell() method for POE::Wheel::FollowTail |
Thomas Nagel asked on POE's mailing list:
Show quoted text
> after playing around with POE::Wheel::FollowTail I wonder
> how to get the
current position inside the read logfile,
Show quoted text> something like IO::File->getpos().
Show quoted text> I noticed Seek and Seek back but nothing to find the
> current position inside the logfile let's say for saving
> its state for a _stop event.
A workaround was posted in reply.
Show quoted text> my $fh = $follow_tail->[ POE::Wheel::FollowTail::SELF_HANDLE ];
> my $pos = sysseek( $fh, 0, SEEK_CUR );
I'd rather have a tell() method than have people breaking the wheel's
encapsulation.