: Accessing object constructors from the 'main'
On 2013.06.10 2:41 PM, Dave Rolsky wrote:
On Sat, 8 Jun 2013, 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
Sent: Tuesday, June 11, 2013 12:08 AM
Subject: Re: Accessing object constructors from the 'main'
On 2013.06.10 2:41 PM, Dave Rolsky wrote:
On Sat, 8 Jun 2013, Faelin McCaley Landy wrote:
The Moose::Manual is very well written, but is definitely lacking in
explanation of a very key
The cookbook is actually where these things exist. All of the examples in there
are also in the tests, so that we can be sure they run.
This said, perhaps what we need is maybe a few simpler recipes.
Stevan
On Jun 10, 2013, at 10:49 PM, Faelin McCaley Landy faelin.la...@gmail.com
wrote:
Oh
moose@perl.org
Sent: Tuesday, June 11, 2013 10:02 AM
Subject: Re: Accessing object constructors from the 'main'
Mark,
Unfortunately I am on my phone so I can't log into github, but I wanted to
point out that there should be no need to use Moose in those two examples.
Moose should only
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
Foo.pm:
package Foo;
use Moose;
main.pl:
use Foo;
Foo-new;
See perldoc FindBin and perldoc lib to help use find Foo.pm
On Sat, Jun 8, 2013 at 9:26 AM, Faelin McCaley Landy faelin.la...@gmail.com
wrote:
The Moose::Manual is very well written, but is definitely lacking in
explanation of
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
On Sat, 8 Jun 2013, 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?!
Specifically, my problem is that I want to have a main.plĀ from
On 2013.06.10 2:41 PM, Dave Rolsky wrote:
On Sat, 8 Jun 2013, 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?!
Specifically, my