Search globing if ref is defined
This commit is contained in:
parent
4e289ec442
commit
20d78c5dae
1 changed files with 8 additions and 5 deletions
|
|
@ -342,12 +342,15 @@ sub compute ($$$;$$$)
|
||||||
$ref =~ s/\$LOGIN/$login/;
|
$ref =~ s/\$LOGIN/$login/;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $glob = Tinyglob::tinyglob($ref);
|
if (defined $ref)
|
||||||
if ($glob ne $ref)
|
|
||||||
{
|
{
|
||||||
my $value = 0;
|
my $glob = Tinyglob::tinyglob($ref);
|
||||||
$value += $ids->{$_} while (grep { /^$glob$/ } keys %$ids);
|
if ($glob ne $ref)
|
||||||
$ids->{ $ref } = $value;
|
{
|
||||||
|
my $value = 0;
|
||||||
|
$value += $ids->{$_} while (grep { /^$glob$/ } keys %$ids);
|
||||||
|
$ids->{ $ref } = $value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $ret = undef;
|
my $ret = undef;
|
||||||
|
|
|
||||||
Reference in a new issue