package Foo; sub test { } 1; package Bar; use base Foo; sub test2 { } 1; #### Subroutine test2 redefined at Foo.pm line 4. Subroutine test redefined at Foo.pm line 14. Foo.pm syntax OK