> A followup to this for those that are interested:
> 
> My real problem wasn't Data::Dumper, but rather the use of JSON::DWIW
> 
> It turns out that that module will convert a number into a
> Math::BigInt object if the number is too large to be represented
> natively and the Math::BigInt module is installed.  If Math::BigInt
> isn't installed, the number is turned into a string to prevent data
> loss.
> 
> For consistent behaviour, I will probably pre-emptively convert raw
> numbers to strings prior to processing by JSON::DWIW.

FWIW (not DWIW ;-), I just natively eat the numbers. Perl will happily
accept numbers over int size; they are treated internally as strings, but
can still have math operations performed on them. Above a certain quantity
of significant digits this will break down, but for Twitter purposes that
ceiling is quite high.

-- 
------------------------------------ personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * [email protected]
-- There is always one more imbecile than you counted on. ---------------------

Reply via email to