Subject: | FileHandle bug |
XML::Parser 2.30 and 2.31
I've been trying for a while to figure out why
I'm getting this spewage from your module:
Can't locate object method "read" via package "FileHandle" (per
haps you forgot to load "FileHandle"?) at /usr/lib/perl5/vendor
_perl/5.6.1/i386-linux/XML/Parser/Expat.pm line 469.
I just upgraded XML::Parser from 2.30 to 2.31
in hopes that it would stop, yet I still got
the similar spewage:
Can't locate object method "read" via package "FileHandle" (per
haps you forgot to load "FileHandle"?) at /usr/lib/perl5/site_p
erl/5.6.1/i386-linux/XML/Parser/Expat.pm line 469.
Not sure if this is your bug, or if it's just
conflicting with something else on my system,
but I got fed up and finally just added it to
your Expat.pm file. (A trivial patch has been
attached.) And now it all works perfectly calm.
Let me know if you need any more details to
duplicate the problem.
*** /usr/lib/perl5/site_perl/5.6.1/i386-linux/XML/Parser/Expat.pm.ORIG Tue Apr 2 10:35:54 2002
--- /usr/lib/perl5/site_perl/5.6.1/i386-linux/XML/Parser/Expat.pm Sat Jan 11 16:19:37 2003
***************
*** 9,12 ****
--- 9,13 ----
use IO::Handle;
+ use FileHandle;
require DynaLoader;