perl -wc Foo.pm is giving following outputpackage Foo; sub test { } 1; package Bar; use base Foo; sub test2 { } 1;
Why is this happening ?Subroutine test2 redefined at Foo.pm line 4. Subroutine test redefined at Foo.pm line 14. Foo.pm syntax OK
In reply to both base and sub class in same file by pvncad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |