Salutations, fellow Monks.
I've been looking at IO::InnerFile and I'm getting a puzzling error:
Can't locate object method "tell" via package "IO::Handle" at /usr/lib +/perl5/site_perl/5.8.0/IO/InnerFile.pm line 233.
I'm basically running the sample code found in the POD for IO::InnerFile:
#!/usr/bin/perl use strict; use warnings; use IO::InnerFile; open(my $fh, "< test_data"); my $inner = IO::InnerFile->new($fh, '100', '50'); while (<$inner>) { print; } close($fh);
As far as I can see, IO::InnerFile isn't inheriting from IO::Handle in any way.
Is there some magic related to the tied filehandle(s) that I'm not aware of?
I've tested this on perl-5.6.1 and perl-5.8.0-thread-multi, both on Linux, with the same results.
I've had a look at the source for the module, and I can't see anything amiss - I feel I'm overlooking something obvious.
Could someone enlighten me to the cause of the wierdness here?
Cheers,
BazB
If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.
In reply to IO::InnerFile inheriting from IO::Handle? by BazB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |