in reply to subroutine xyz redefined at ...

Do "A" and "B" both have a package statement? Do either export "xyz"?