in reply to error in perl TK module post installation

What happens when you run:
perl -MTk -le "print $Tk::VERSION;"
If that outputs 804.033 (as it should) then it's probably a problem with your XYZ.pl script.

Cheers,
Rob