Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Should chomping a constant always raise an error?

by ysth (Canon)
on Mar 14, 2005 at 08:56 UTC ( #439197=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://439197]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2022-05-25 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?