in reply to Re^2: De-Overload reference?
in thread De-Overload reference?

I thought threads got their own copy of the interpreter. Do they share package stashes?

Replies are listed 'Best First'.
Re^4: De-Overload reference?
by LanX (Saint) on Apr 17, 2024 at 19:00 UTC
    Depends on the threads-modell and the OS, I suppose?

    And there are various other concurrency models...

    The package is practically a global variable, so only meddling with the object is already a much cleaner design.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery

      Perl avoids concurrency at the global level using clones of all globals for each thread. You can still break things with XS though. I don't know if the cloning of globals extends down into the magic structures backing the 'overload' feature, but I'd consider it a bug if it didn't.