Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Shared hash within shared hash of hash???

by zwon (Monsignor)
on Jan 02, 2013 at 12:46 UTC ( #1011262=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Shared hash within shared hash of hash???
in thread Shared hash within shared hash of hash???

I'm not sure about the first one, as for the second -- why don't you try it?


Comment on Re^3: Shared hash within shared hash of hash???
Re^4: Shared hash within shared hash of hash???
by ISAI student (Scribe) on Jan 02, 2013 at 14:53 UTC
    I did, it seems to work. I am however, wary of corner cases, when threads are involved.
      I did, it seems to work

      That's strange, because for me it didn't work:

      use threads; use threads::shared; my %sa : shared = (); %{$sa{foo}} = (); __END__ Invalid value for shared scalar at share_share.pl line 5.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011262]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-09-16 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (32 votes), past polls