Update3: If you like this posting please don\'t upvote me but upvote the genius answer by DVK below.
Update3:
I have the following subroutines:<
This error can also happen if you've accidentally re-declared shared variables in the main thread of a script,
`
use vars qw(%types %colors); my %types = (...); # bad %colors = (...); # good