Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Reliability of SvREADONLY (PV, need)

by tye (Sage)
on Dec 13, 2006 at 21:05 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2022-08-17 11:19 GMT
Find Nodes?
    Voting Booth?

    No recent polls found