Subject: | IO::Handle error in t/lib//MockDB/DBI.pm |
I get this error when running "make test":
Can't locate object method "close" via package "IO::Handle" (perhaps you
forgot to load
"IO::Handle"?) at t/lib//MockDB/DBI.pm line 14.
The line in question is here:
my($fh,$name) = tempfile(undef, UNLINK => 1);
$fh->close;
Either a
use IO::Handle;
or
close($fh); # instead of $fh->close
fixes it on my system (see module set below)
~~~~~~~~~~~~~~~~
I'm using:
Class::DBI::AutoIncrement 0.05
IO::Handle 1.21
Class::DBI 0.96
DBD::CSV 0.22
DBD::File 0.34
SQL::Statement 1.15
This is perl, v5.6.1 built for i386-linux
Linux example.com 2.4.21-32.0.1.EL #1 Wed May 25 16:02:04 CDT 2005 i686
unknown