Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Reliability of SvREADONLY (PV, need)

by tye (Sage)
on Dec 13, 2006 at 21:05 UTC ( [id://589678]=note: print w/replies, xml ) Need Help??


in reply to Reliability of SvREADONLY

If I were doing this, only the PV would be shared and I'd expect SvREADONLY to work until the scalar is destroyed.

I think Perl really needs to support this type of thing. I run into lots of cases where it would be nice to have Perl offer (efficient) read-only access to a block of memory that it didn't allocate and be smart enough to not try to free that block when the scalar is destroyed (and possibly call a hook instead). There are convoluted and inefficient ways to get Perl to kind-of do this.

- tye        

  • Comment on Re: Reliability of SvREADONLY (PV, need)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-18 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found