in reply to 'use bignum' scoping question

From bignum ...loaded and any constant number will be converted to an object (Math::BigFloat for floats like 3.1415 and Math::BigInt for integers like 1234).

$num is not a constant, 0 is a constant, and 0 + $num is a Math::BigInt