pvncad has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: both base and sub class in same file
by ikegami (Patriarch) on Oct 11, 2007 at 13:28 UTC | |
by pvncad (Initiate) on Oct 11, 2007 at 13:58 UTC | |
by ikegami (Patriarch) on Oct 11, 2007 at 14:21 UTC | |
|
Re: both base and sub class in same file
by Sidhekin (Priest) on Oct 11, 2007 at 13:29 UTC | |
|
Re: both base and sub class in same file
by Fletch (Bishop) on Oct 11, 2007 at 13:30 UTC | |
|
Re: both base and sub class in same file
by naikonta (Curate) on Oct 12, 2007 at 00:51 UTC |