mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
small cleanup
This commit is contained in:
@ -35,6 +35,19 @@ sub new {
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub copy {
|
||||
my $self= shift;
|
||||
my $copy= My::Test->new();
|
||||
while (my ($key, $value) = each(%$self)) {
|
||||
if (ref $value eq "ARRAY") {
|
||||
push(@{$copy->{$key}}, @$value);
|
||||
} else {
|
||||
$copy->{$key}= $value;
|
||||
}
|
||||
}
|
||||
$copy;
|
||||
}
|
||||
|
||||
sub fullname {
|
||||
my ($self)= @_;
|
||||
$self->{name} . (defined $self->{combinations}
|
||||
|
Reference in New Issue
Block a user