my $name = $args{constructor_name};
- unless ( $args{replace_constructor}
- or !$self->has_method($name) ) {
+ if ( $self->has_method($name) && !$args{replace_constructor} ) {
my $class = $self->name;
warn "Not inlining a constructor for $class since it defines"
. " its own constructor.\n"
|| confess "The 'inline_destructor' option is present, but "
. "no destructor class was specified";
- if ($self->has_method('DESTROY') ) {
+ if ( $self->has_method('DESTROY') ) {
my $class = $self->name;
warn "Not inlining a destructor for $class since it defines"
. " its own destructor.\n";