You don't give us much information. Important are the
packages of theModule.pm and X.pm. If the
funcB's
of both files are in the same package, the one in X.pm will
replace the one in theModule.pm.
But then, if you would warnings, Perl would tell you.
Abigail