I'm on perl 5.22.0 and List::MoreUtils 0.413.

Dumping $envres->[2][0]{time} with Devel::Peek reveals something:

When there is no warning:

SV = PVNV(0x279ae10) at 0x25ca100 REFCNT = 1 FLAGS = (POK,IsCOW,pPOK) IV = 0 NV = 0.00217268600128591 PV = 0x2895f60 "0.0022"\0 CUR = 6 LEN = 10 COW_REFCNT = 3

When there is a warning:

SV = PVNV(0x196bf40) at 0x170b110 REFCNT = 1 FLAGS = (POK,pPOK) IV = 0 NV = 0.002889619519036 PV = 0x1a6dbb0 "0.003"\0 CUR = 5 LEN = 10 Use of uninitialized value $max in numeric le (<=) at lib/Bencher/Form +atter/ScaleTime.pm line 30.

Trying this with a few other perls: doesn't happen in 5.10.1, always seems to happen in 5.18.4, never seems to happen in 5.20.3 happens too in 5.20.3.


In reply to Re^2: List::MoreUtils' minmax bug? by perlancar
in thread List::MoreUtils' minmax bug? by perlancar

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.