Subject: | Get error 'could not eval [...]' on Perl 5.16.2 |
I tried running the following:
use strict;
use warnings;
use Module::UseFrom;
our $var;
BEGIN {
$var = 'Module::Path';
}
use_from $var 'module_path';
print "path = ", module_path('Module::Path'), "\n";
When I run this, it first sat there for ages, then I got the following output, which doesn't make
a lot of sense to me!
Could not eval '
package ExtUtils::MakeMaker::_version;
no strict;
BEGIN { eval {
# Ensure any version() routine which might have leaked
# into this package has been deleted. Interferes with
# version->import()
undef *version;
require version;
"version"->import;
} }
local $VERSION;
$VERSION=undef;
do {
our Readonly::Scalar $VERSION = 0.0577;
};
$VERSION;
' in /usr/local/lib/perl5/site_perl/5.16.2/Lingua/Word2Num.pm: No such class
Readonly::Scalar at (eval 4010) line 16, near "{
our Readonly::Scalar"