Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Re: Method calling question...

by satchboost (Scribe)
on May 01, 2001 at 02:26 UTC ( #76795=note: print w/replies, xml ) Need Help??

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\ line 16. Called from class: Foo Called from class: Bar
                   s aamecha.s a..a\u$&owag.print
      Ok. I must've been doing something else wrong. *sighs* I'll putz with it further.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://76795]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2023-12-04 04:17 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (21 votes). Check out past polls.