BazB has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO::InnerFile inheriting from IO::Handle?
by ihb (Deacon) on Feb 04, 2003 at 15:34 UTC | |
|
Re: IO::InnerFile inheriting from IO::Handle?
by bart (Canon) on Feb 03, 2003 at 23:49 UTC | |
by BazB (Priest) on Feb 03, 2003 at 23:59 UTC | |
by broquaint (Abbot) on Feb 04, 2003 at 11:04 UTC |