Re: Accessing object constructors from the 'main'
[email protected] (Chris Weyl) Mon, 10 Jun 2013 14:40:48 -0700 (PDT)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <alpine.DEB.2.02.1306101427001.4161@athena> |
On Sat, 8 Jun 2013, Faelin McCaley Landy wrote: >> *use Moose; >> extends 'Obj';* > > but this seems like it can't be the Best Practices way to go about is... Is > there a more "proper" way to access an objects constructor from a different > document? If you've defined Obj in Obj.pm and that file is in your @INC, you should be able to do a 'use Obj;' and make the class available. -Chris