in reply to Re: Calling chains, extends, and subclassing
in thread Calling chains, extends, and subclassing
##Non redundant code
use aliased 'NHB::QuizMaster::Custom::NHMCCD::Question';
##Totally redundant code
sub new_question {
my $self = shift;
my $question = new Question( @_ ); Question->new(@_);
push @{ $self->questions }, $question;
$question;
}
I'm guessing that the alias doesn't affect the superclass
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Calling chains, extends, and subclassing
by diotalevi (Canon) on Oct 04, 2006 at 15:53 UTC | |
by EvanCarroll (Chaplain) on Oct 04, 2006 at 17:07 UTC |