Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^7: Sharing XS object?

by ELISHEVA (Prior)
on Mar 10, 2011 at 13:37 UTC ( #892410=note: print w/ replies, xml ) Need Help??


in reply to Re^6: Sharing XS object?
in thread Sharing XS object?

From perldocs 5.10.0 and 5.12.2

BUGS AND LIMITATIONS

When share is used on arrays, hashes, array refs or hash refs, any data they contain will be lost.

I also noticed it with my own eyes, testing some code last night.


Comment on Re^7: Sharing XS object?
Replies are listed 'Best First'.
Re^8: Sharing XS object?
by BrowserUk (Pope) on Mar 10, 2011 at 13:56 UTC
    AND LIMITATIONS.... Therefore, populate such variables after declaring them as shared.
Re^8: Sharing XS object?
by menth0l (Monk) on Mar 10, 2011 at 14:50 UTC
    Check out shared_clone().

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (21)
As of 2015-07-31 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls