Added check to prevent accidental data overwrite during arghash construction.
This commit is contained in:
parent
001992af81
commit
666c8b5759
@ -192,7 +192,7 @@ sub _new_module_internal {
|
||||
"module" => $self,
|
||||
};
|
||||
foreach my $key (%{$self}) {
|
||||
$args{$key} = $self -> {$key};
|
||||
$args{$key} = $self -> {$key} if(!defined($args{$key}));
|
||||
}
|
||||
|
||||
my $modobj = $name -> new(%args)
|
||||
|
Loading…
x
Reference in New Issue
Block a user