in reply to threads::shared hash
Seems to be a problem with your build of perl rather than perl itself, in that I don't get any errors (other than the missing semicolons) running your snippet under 5.8.2/AS 808
This is perl, v5.8.2 built for MSWin32-x86-multi-thread Binary build 808 provided by ActiveState Corp. http://www.ActiveState. +com
That said, your snippet obviously isn't a direct c&p of your failing code (given the syntax errors), and the partial error message you give "Invalid value for shared scalar at..." is usually a compile or runtime error, not a crash. So maybe you should post a more complete example?
P:\test>perl -Mthreads -mthreads::shared my( %h ) : shared; my $var = 'hello'; $h{ $var } = 123; print $h{hello}; ^Z 123
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham"Think for yourself!" - Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: threads::shared hash
by fxmakers (Friar) on Mar 27, 2004 at 01:14 UTC | |
by BrowserUk (Patriarch) on Mar 27, 2004 at 01:30 UTC | |
by fxmakers (Friar) on Mar 27, 2004 at 02:28 UTC |
In Section
Seekers of Perl Wisdom