In a dump, the closure has the CLONED flag. You can also see the capture.

SV = IV(0x582c494d89d0) at 0x582c494d89e0 REFCNT = 1 FLAGS = (ROK) RV = 0x582c494b36b0 SV = PVCV(0x582c495314a8) at 0x582c494b36b0 REFCNT = 2 FLAGS = (ANON,CLONED,CVGV_RC,DYNFILE) COMP_STASH = 0x582c494b3530 "main" START = 0x582c494f9298 ===> 1 ROOT = 0x582c494f9220 GVGV::GV = 0x582c494eed80 "main" :: "__ANON__" FILE = "-" DEPTH = 0 FLAGS = 0x14c0 OUTSIDE_SEQ = 218 PADLIST = 0x582c494ca480 PADNAME = 0x582c494f87a0(0x582c494d5cc0) PAD = 0x582c494d8878(0x58 +2c494df290) 1. 0x582c494eeb88<2> FAKE "$x" flags=0x0 index=2 OUTSIDE = 0x0 (null)

In reply to Re^4: Why is "any" slow in this case? by ikegami
in thread Why is "any" slow in this case? by Anonymous Monk

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.