Subject: | use Math::GMP qw(:constant) messes up eval |
The following snippet
use warnings;
use Math::GMP qw(:constant);
my $expr = '1024*1024';
my $temp = eval $expr;
die $@ if $@;
warn "OK";
produces the following error (in $@):
Constant(undef): $^H{integer} is not defined at (eval 1) line 1, at
end of line
Constant(undef): $^H{integer} is not defined at (eval 1) line 1, at
end of line
The error goes away if the tag ":constant" is dropped from the use
statement.
This is Math::GMP 2.04, on PXPerl/Win32, perl 5.8.7, but I've heard
other people say it happens on other platforms/perl versions too.