Subject: | Math::String and ** |
perl -MMath::String -e'print Math::String->new('abc') ** 3,"\n";'
Segmentation fault
That is a problem of 5.6.1 segfaulting when getting a undef back from overload. Here it means the result of 'abc' ** 3 is NaN, which is stringified undef. Thats more a missiing feature, Math::String should try to convert a second arg to a Math::BigInt, if it fails to produce a Math::String.
perl -MMath::String -e'print Math::String->new('abc') ** 'abc',"\n";
'
Can't bless non-reference value at /usr/local/lib/perl5/site_perl/5.6.1/Math/String.pm line 110.
Not good.
perl -MMath::String -e'print Math::String->new('abc') ** Math::String->new('abc'),"\n";'
Can't bless non-reference value at /usr/local/lib/perl5/site_perl/5.6.1/Math/String.pm line 110.
Neither.
Oh, and I hope I work on it. I wish me luck in fixing this ;)