woodpeaker has asked for the wisdom of the Perl Monks concerning the following question:
Well, when I creating object it give me blank package without any methods and properties. Also, when I trying to $foo->_init() nothing happen and nothing changes in *Foo object. Also, after that application stops and nothing show me as error. I tried to use strict, warnings, perl -w and eval. Test::More said just 'Test failed'. How do you think what problem in it? And how can I resolve that. PS. perl version is 5.10package Package::Systen::Foo; use Moose; use Package::System::Config; has 'CONFIG' => (is => 'rw', isa => 'Object'); sub _init { my $self = shift; $self->CONFIG(Package::System::Config->new()); } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Object not created as well with Moose
by Corion (Patriarch) on Dec 10, 2008 at 21:49 UTC | |
by woodpeaker (Novice) on Dec 10, 2008 at 22:03 UTC | |
by ww (Archbishop) on Dec 10, 2008 at 22:55 UTC | |
by stvn (Monsignor) on Dec 12, 2008 at 04:59 UTC | |
|
Re: Object not created as well with Moose
by duckyd (Hermit) on Dec 10, 2008 at 23:10 UTC | |
by Your Mother (Archbishop) on Dec 10, 2008 at 23:56 UTC | |
|
Re: Object not created as well with Moose
by rhesa (Vicar) on Dec 11, 2008 at 12:23 UTC | |
by woodpeaker (Novice) on Dec 11, 2008 at 19:33 UTC | |
|
Re: Object not created as well with Moose
by woodpeaker (Novice) on Dec 11, 2008 at 05:06 UTC |