Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: getting shared_clone() functionality with earlier threads::shared?

by BrowserUk (Pope)
on Nov 10, 2010 at 01:14 UTC ( #870461=note: print w/ replies, xml ) Need Help??

Comment on Re: getting shared_clone() functionality with earlier threads::shared?
Re^2: getting shared_clone() functionality with earlier threads::shared?
by DrWhy (Chaplain) on Nov 10, 2010 at 17:11 UTC
    That's an interesting idea. I hadn't looked at the code for the more recent threads::shared and didn't realize shared_clone was implemented in pure perl -- I assumed it was in .xs like the rest of the module's code.

    Actually, I now think I can solve my problem better using Data::Alias. But I'll have to test to see if this aliasing plays well with shared variables.

    UPDATE: fixed typo.

    --DrWhy

    "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

      Actually, I now think I can solve my problem better using Data::Alias. But I'll have to test to see if this aliasing plays well with shared variables.

      That too is an interesting idea. It's not something I've ever thought to try. My gut feel says it's not going to work, but please be sure to come back and tell us how you get on.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Don't know when I'll get to this, but I'll leave up this link to this comment in my chatterbox as a reminder.

        --DrWhy

        "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-09-21 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls