DBI::Format comes with
DBI-1.32 in lib/DBI/Format.pm as VERSION 11.4
and
DBI-Shell-11.9 in lib/DBI/Format.pm as VERSION 11.8
According to the .packlist files DBI installs Format.pm in
/usr/local/lib/perl5/site_perl/5.9.0/i686-linux/DBI
but DBI/Shell installs the newer version in
/usr/local/lib/perl5/site_perl/5.9.0/DBI/Format.pm
In my @INC,
/usr/local/lib/perl5/site_perl/5.9.0/i686-linux
(where DBI installs the older Format.pm) comes before
/usr/local/lib/perl5/site_perl/5.9.0
(where the newer DBI-Shell is installed)
This causes the older DBI::Format to be used, and CPAN.pm
to report that an upgrade is in order
Shouldn't both of these packages (DBI and DBI-Shell) install
DBI::Format in the same location?
Where is the 'correct' location for DBI::Format?
Also, both the CPAN "r" command and the
test code described in perldoc CPAN
perl -MExtUtils::MakeMaker -le \
'print MM->parse_version(shift)' \
DBI-Shell-11.9/lib/DBI/Format/SQLMinus.pm
report an error in SQLMinus.pm
Could not eval '
package ExtUtils::MakeMaker::_version;
no strict;
local $DBI::Format::SQLMinus::VERSION;
$DBI::Format::SQLMinus::VERSION=undef; do {
$DBI::Format::SQLMinus::VERSION =
}; $DBI::Format::SQLMinus::VERSION
' in /usr/local/lib/perl5/site_perl/5.9.0/DBI/Format/SQLMinus.pm: syntax error
at (eval 83) line 8, at EOF
Because it can't determine the version number from the lines
$DBI::Format::SQLMinus::VERSION =
$DBI::Format::SQLMinus::VERSION =
(qw$Revision: 11.8 $)[1];
in DBI-Shell-11.9/lib/DBI/Format/SQLMinus.pm
Perldoc Extutils::MakeMaker document the format for the $VERSION
in the description of VERSION_FROM as needing to be on one line,
(not the 3 lines in SQLMinus.pm)