in reply to
Re: lock with references
in thread lock with references
Relax, I have yet to encounter one, and not into punching anyone. I am doing major rework on a huge script, and trying to make the code more modular, w/o changing the basic algorithm. Hence, passing hundreds of lines of code to some subroutines, which setup shared variables. I have to use references, as two or more shared hashes are changed in 1 chunk of code, and seperating the commands is far too time consuming.
I have never worked with threads, and was afraid of some unknown (to me) "gotcha". perlmonks is, IMHO, one of the best place to ask about this, with regards to PERL, of course.