http://qs321.pair.com?node_id=439197


in reply to Re^2: Should chomping a constant always raise an error?
in thread Should chomping a constant always raise an error?

4. I could use Inline::C to use the svREADONLY macro.
Done for you, in 5.8.0 and higher: Internals::SvREADONLY($sv)

Replies are listed 'Best First'.
Re^4: Should chomping a constant always raise an error?
by BrowserUk (Patriarch) on Mar 14, 2005 at 09:02 UTC

    See number 3). :)


    Examine what is said, not who speaks.
    Silence betokens consent.
    Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco.
      The function I was referring to is built in, not from the CPAN module.

        I have an 'Internals' package, that as far as I recall, I didn't install. I assume it came with the AS distribution. It has SetReadOnly($object) & SetReadWrite($object); routines.

        I can't find any other 'Internals' that exports svREADONLY(). Is it documented somewhere?


        Examine what is said, not who speaks.
        Silence betokens consent.
        Love the truth but pardon error.
        Lingua non convalesco, consenesco et abolesco.