Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Method calling question...

by satchboost (Scribe)
on May 01, 2001 at 02:26 UTC ( [id://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\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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found