|Just another Perl shrine|
Re: Things you need to know before programming Perl ithreadsby Zaxo (Archbishop)
|on Aug 31, 2003 at 17:06 UTC||Need Help??|
I got curious about how closures would do, so I tried your technique to see what happens (perl 5.8.1-RC2),
so the object of the closure is duplicated - you did say everything, but I had to check.
Now, what if I want all threads to see the same thing?
so both foo()'s point to the same cloistered object.
Trying to stick the :shared attribute on sub foo did no good. I expected it to prevent duplication of the code, but perl smacked me down with,
I suspect I need to read some more of the fine manual.