We don't bite newbies here... much | |
PerlMonks |
Re^5: Threads::Shared MultiLevel Hash and the Invalid value for Shared Scalar Errorby BrowserUk (Patriarch) |
on Feb 13, 2014 at 08:18 UTC ( [id://1074764]=note: print w/replies, xml ) | Need Help?? |
There are many anomalies in your OP code. For example, you have many blocks of code like this:
Note that you are testing exists $$dataref{$eid}{"ALL"}{"MatchesPeopleEnded"}) But are assigning to $$dataref{$sid}{"ALL"}{"MatchesEnded"}=\%a; That probably explains your immediate problem. However, there are further anomalies. For example, why are you assigning references to shared hashes to a bunch of variables that you subsequently are using as integers:
Part of your problem is that you spread your code around all over the place which means that you need to scroll up down many pages to see where a variable is declared, initialised and then used. There is a huge chunk of code in the middle of your program that I suspect could be replace by this:
Which might improve things a little, but I have no way to test that. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|