in reply to Constant string reference

This function is undocumented but comes with perl as of a 5.8.something version.

Internals::SvREADONLY( \ $variable, 1 )

Replies are listed 'Best First'.
Re^2: Constant string reference
by dave_the_m (Monsignor) on Dec 09, 2004 at 14:03 UTC
    This function is undocumented but comes with perl as of a 5.8.something version.
    Internals:: functions are not supposed to be used by user-code outside the core; that's why they're undocumented.

    Dave.

      No, that's not right. Internals::functions may be used by user-code but only by code that allows that perl internals are allowed to change from version to version. The B:: modules exist so that perl isn't a black box and to allow people access to the guts if they really need to be there.
        No, that's not right. Internals::functions may be used by user-code but only by code that allows that perl internals are allowed to change from version to version.
        That's rather playing with semantics. The OP was presumably talking about real code, not introspection. The p5pers reserve the right to change or completely remove functions in Internals:: between releases.

        Dave.