Skip Menu |

This queue is for tickets about the POE CPAN distribution.

Report information
The Basics
Id: 8461
Status: resolved
Priority: 0/
Queue: POE

People
Owner: Nobody in particular
Requestors: me [...] thomasnagel.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
I've finally added tell(). It will appear in POE 0.31. Thanks for the suggestion.