Re: Accessing object constructors from the 'main'
[email protected] (Karen Etheridge) Mon, 10 Jun 2013 14:26:51 -0700
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Jun 08, 2013 at 03:26:37AM -0400, Faelin McCaley Landy wrote: > The Moose::Manual is very well written, but is definitely lacking in > explanation of a very key step in product development: how on Earth do you > actually use your objects in a script?! Like any other module, you need to load it first, via 'use': use Obj; my $obj = Obj->new(...); If you haven't read it, 'perldoc -f use' contains some useful tidbits of knowledge (as well as a smattering of esoterica).