in reply to 'use bignum' scoping question

Looks like a bignum bug to me. It's certainly not the behaviour I would expect, though I haven't checked to see what (if anything) the bignum documentation has to say on the matter.
Update:Aaah ... but lamprecht has :-)

Safest workaround would be to explicitly use Math::BigFloat:
use strict; use warnings; use Math::BigFloat; Math::BigFloat->accuracy(200); my $s = sqrt(Math::BigFloat->new(2)); print $s, "\n"; for my $num (2..2) { $s = sqrt(Math::BigFloat->new($num)); print $s; }
Cheers,
Rob