Subject: | IO::InnerFile tied eof() |
Date: | Fri, 11 Mar 2011 10:10:31 +1100 |
To: | bug-IO-stringy [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With recent debian i386 perl 5.10.1 and IO::InnerFile 2.110 the program
eof.pl below gets an error
Can't locate object method "EOF" via package "IO::InnerFile" at eof.pl line 9.
where I hoped the eof() operator/func thingie might be used on such a
tied handle.
Would it be as simple as (only slightly tried :-),
sub EOF {
my ($self) = @_;
return ($self->{CRPOS} < $self->{LG});
}
in the style of GETC() ?
Unless there's an open-ended mode which should consult the "outer"
handle's eof()-ness ...
--
Mathematical jargon elucidated for the layman:
"It is easy to show ..." -- it'll take a week's hard work and 100 pages of
calculation.