in reply to share() bug? ( [perl #30702] )

I agree. Well it could be a bug, but I don't think this case is even documented. It should at least be listed as a caveat. I'm going to poke into the source.

Update: I should note that it also does that to the referenced array if you share a reference.

mhoward - at - hattmoward.org

Replies are listed 'Best First'.
Re^2: share() bug?
by BrowserUk (Patriarch) on Jul 14, 2004 at 08:28 UTC

    Let me know what you find out please. I'll hold off raising a perlbug until I get a conlusion about whether it's a code problem or a docs problem.

    I've stared at shared.xs/.c, and seen nothing that looked like would cause this. That said, the internals are still mostly a mystery too me and magic positively scares me :)


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon

      This is strong magic, much stronger than mine. Go ahead and perlbug it, I took a look, but didn't see anything jumping out at me either.

      mhoward - at - hattmoward.org