"my" variable $re masks earlier declaration in same scope at MyEncode.pm line 2. Subroutine test redefined at MyEncode.pm line 3.