ISAI student has asked for the wisdom of the Perl Monks concerning the following question:
Hello all.
Is there any known pragma, in which one would decide to have the following code snippet:
I mean, $a{'foo'} is already shared, right? What's the point in having it's elements shared too? The code that I am maintaining, has not a single lock command...use threads; use threads::shared ; my %a : shared = () ; $a{'foo'} = &share({}) ;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Shared hash within shared hash of hash???
by zwon (Abbot) on Jan 02, 2013 at 11:43 UTC | |
by ISAI student (Scribe) on Jan 02, 2013 at 12:31 UTC | |
by dave_the_m (Monsignor) on Jan 02, 2013 at 17:30 UTC | |
by BrowserUk (Patriarch) on Jan 02, 2013 at 15:53 UTC | |
by zwon (Abbot) on Jan 02, 2013 at 12:46 UTC | |
by ISAI student (Scribe) on Jan 02, 2013 at 14:53 UTC | |
by zwon (Abbot) on Jan 03, 2013 at 14:44 UTC | |
Re: Shared hash within shared hash of hash???
by muba (Priest) on Jan 02, 2013 at 12:00 UTC |
Back to
Seekers of Perl Wisdom