in reply to Weird things...

Is name initialized in the main routine? If so, you need to qualify its use in loaded modules with main::. Example: in turd.pl, use $main::name in place of $main.