I have asked this question before or searched and seen others ask - why am I getting the warning \"Subroutine mySub redefined at ../lib/Common.pm line x\"? and you
I had the same problem; It was because the program used a module and the subroutine was present both in the program and in the perl module;