FWIW and I don't think !!1 used to be dualvar (see Scalar::Util ) prior to 5.36.

It's actually a triplevar, and it has been so at least as far back as 5.6, but probably a lot further back.

I don't have 5.6, but here's 5.8.9:

$ 5.8.9/bin/perl -MDevel::Peek -e'Dump(!!1)' SV = PVNV(0x55e2de0d1348) at 0x55e2dd477310 REFCNT = 2147483647 FLAGS = (IOK,NOK,POK,READONLY,pIOK,pNOK,pPOK) IV = 1 NV = 1 PV = 0x55e2de0d2320 "1"\0 CUR = 1 LEN = 8 $ 5.8.9/bin/perl -MDevel::Peek -e'Dump(!!0)' SV = PVNV(0x55aeb71e8320) at 0x55aeb5e05da0 REFCNT = 2147483647 FLAGS = (IOK,NOK,POK,READONLY,pIOK,pNOK,pPOK) IV = 0 NV = 0 PV = 0x55aeb71e8300 ""\0 CUR = 0 LEN = 8

In reply to Re^4: Why is Dumper returning "!!1" for true file test? by ikegami
in thread Why is Dumper returning "!!1" for true file test? by nysus

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.