in reply to Re: Method calling question...
in thread Method calling question...

There's a reason I was using four files. If you have everything in one file, of course it works cause method1 is scoped within the file. When you have it across several files, it breaks down. :(

Replies are listed 'Best First'.
Re: Re: Re: Method calling question...
by MeowChow (Vicar) on May 01, 2001 at 02:29 UTC
    It's not a scoping issue:
    foreach my $classname qw(Foo Bar Oops) { $classname->method1; } ## output ## Can't locate object method "method1" via package "Oops" at C:\Projects +\GPerl\Test\2.pl line 16. Called from class: Foo Called from class: Bar
       MeowChow                                   
                   s aamecha.s a..a\u$&owag.print
      Ok. I must've been doing something else wrong. *sighs* I'll putz with it further.