Doing a dump of a data structure containing some Math::BigRat numers, one of them came out as:

Math::BigRat->new(1571564245790041077296625940243395969525186964287593 +983211702071746502379495623702577687858610948113768329213254446858777 +462774205807704907534468051879076153966236613373983285049528141164401 +804491277534042420588175951527609420679646968472291614616493189613724 +30678659/460397631724414375288203319974097111671726091486872993814540 +858035284745439761138909372513995598452763793523966663078798210624544 +163215635719624749415998193424763330332330636532827342407051247856305 +66719533434246383626808498436777490000000000000000000000000000000000)

When I eval (or do) this file (with Math::BigRat loaded of course), it fails silently. When I remove this line, it succeeds.

Any ideas?

PS: This is rather annoying as this data appears in the audit logs and causes my log audit tools to fail silently. I can't have corrupt data appearing in my logs and, BTW, this isn't even corrupt data, really.


In reply to Math::BigRat Dump Fails on Eval by jabowery

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.