First of all, you need to 'use strict;' and 'use warnings;'. That would have told you that there was an issue with child.pl:
Global symbol "%tid" requires explicit package name at child.pl line 4.
Compilation failed in require at ./parent.pl line 10.
When you want to influence variables across 'require' you need to declare them as 'our'; not 'my'. The following works: