satchboost has asked for the wisdom of the Perl Monks concerning the following question:
I've got the following setup:
Base.pm: package Base; sub method1 { # Insert code here }; Foo.pm: package Foo; use Base; @ISA = qw(Base); Bar.pm: package Bar; use Base; @ISA = qw(Base); Main.pm ... foreach my $classname qw(Foo Bar) { $classname->method1; }
I know that this code doesn't work. What I'm wondering is what will work for what I'm trying to do?
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re: Method calling question...
by tye (Sage) on May 01, 2001 at 02:43 UTC | |
by jplindstrom (Monsignor) on May 01, 2001 at 03:04 UTC | |
| |
by spaz (Pilgrim) on May 01, 2001 at 03:08 UTC | |
by tye (Sage) on May 01, 2001 at 05:44 UTC | |
Re: Method calling question...
by MeowChow (Vicar) on May 01, 2001 at 02:23 UTC | |
by satchboost (Scribe) on May 01, 2001 at 02:26 UTC | |
by MeowChow (Vicar) on May 01, 2001 at 02:29 UTC | |
by satchboost (Scribe) on May 01, 2001 at 02:38 UTC |
Back to
Seekers of Perl Wisdom