This is the failing line: $hsh{"$Sdatabase"} = $dbh;
A database handle is a complex thing. It may reference file components and external library resources. They can't be shared. (The specific violation is that $dbh is a reference, but it doesn't reference something shared.)
Create the database handle in the thread that will use it.
In reply to Re: threads::shared referencing confusion
by ikegami
in thread threads::shared referencing confusion
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |