I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-04-20 23:11:27-07 by oldlurker
Call super from moose object
Hi, How do I call a method with same name in a superclass? something like:
sub method { my $self = shift; ... # What is the Moose way? $self->SUPER( $new_param, @); }
Direct Responses: 10505 | Write a response
Posted on 2009-04-20 23:43:16-07 by stvn in response to 10504
Re: Call super from moose object
You can either use the standard perl approach of
sub method { my $self = shift; .... $self->SUPER::method( @args ); }
or you can use the one of the method modifier features of Moose which is discussed in Moose::Manual::MethodModifiers or in the recipe form in Moose::Cookbook::Basics::Recipe1.
Direct Responses: Write a response