saintex has asked for the wisdom of the Perl Monks concerning the following question:
And this is the package:package Browser; our $VERSION=0.01; use Moose::Role; requires qw(cookieCreate cookieDelete navigation); sub BUILD { my $self = shift; $self->cookieCreate; }
I have this error:package MyPackage; use Moose; with 'Browser'; sub BUILD { my $self = shift; Browser->BUILD; # or super->BUILD ? } sub cookieCreate { my $self = shift; }
Can't locate object method "cookieCreate" via package "Browser" at ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Moose role BUILD question
by ikegami (Patriarch) on Mar 23, 2011 at 16:46 UTC | |
by saintex (Scribe) on Mar 24, 2011 at 10:41 UTC | |
|
Re: Moose role BUILD question
by stvn (Monsignor) on Mar 24, 2011 at 13:20 UTC | |
by ikegami (Patriarch) on Mar 24, 2011 at 18:53 UTC | |
by stvn (Monsignor) on Mar 24, 2011 at 22:43 UTC |