yes, they are also globaller-than-global globals. you can see then in perlapi.h look for "pl_sv_". you don't ever overload them. you break everyone else's code when you change these values. in fact, this entire avenue is just off limits because you can't change the behaviour of undef, yes, and no without changing it for every piece of every module loaded, everywhere.

the only case where you could possibly, maybe, change these values would be during small, discrete sections of your own code where you overload your value on entering and remove the overload before calling any functions, magic or explict, and before exiting. you'd have to have vetted all your input values to know that nothing has been tied, overloaded, or somehow has get or set magic. The point to this paranoia is that the none of the code you've included from cpan or from the core distribution is going to expect that true, false, and undefined have changed. It will break all other code that depends on them.


In reply to Re^8: The Null Mull (or, when OO needs more O) by diotalevi
in thread The Null Mull (or, when OO needs more O) by brian_d_foy

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.