in reply to Re^2: How to determine if 'strict' is enabled
in thread How to determine if 'strict' is enabled

G'day stevieb,

"Is this documented anywhere ikegami?"

I looked this up after ++ikegami's response. See caller for element-8, $hints, and subsequent discussion. See "strict's source code" for the numbers (0x2, 0x200, and 0x400).

— Ken

Replies are listed 'Best First'.
Re^4: How to determine if 'strict' is enabled
by LanX (Saint) on Jun 07, 2023 at 11:27 UTC
    And especially $^H is enlightening, too.

      Each time a statement completes being compiled, the current value of $^H is stored with that statement, and can later be retrieved via (caller($level))[8]

    so it also depends at what time you need to check the strictness.

    Cheers Rolf
    (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
    Wikisyntax for the Monastery