in reply to perl calls unexpected function

You don't say much about the relationship between the two. If you are only using theModule, X.pm ought never to be involved. Can you explain the relation between the two better?

My only thought is that if by "library function" you mean that you're useing X.pm in theModule.pm, its funcB is overriding the one you're trying to call, as it should (if it's automatically exported).
--

Love justice; desire mercy.