in reply to Re: Pragma (more) like Java's 'import'?
in thread Pragma (more) like Java's 'import'?
Firstly, if the Module in question is a OO style module, then the only time you need to use the full module name is when you instanciate itNot necessarily. The constructor Foo::Bar->new is just one example of a class method as opposed to an object method.
I'm not familiar with Bricolage, so I don't know if this is true in this case, but there may be several class methods, which are concerned with behaviour of the whole class and all objects in it.
I've also seen more than one type of constructor used in the same class, e.g. Foo::Bar->lookup('quux.db') which returns a whole list's worth of objects.
My $0.02
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Pragma (more) like Java's 'import'?
by BrowserUk (Patriarch) on May 12, 2003 at 12:45 UTC |