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/;
|
||||
}
|
||||
|
||||
my $glob = Tinyglob::tinyglob($ref);
|
||||
if ($glob ne $ref)
|
||||
if (defined $ref)
|
||||
{
|
||||
my $value = 0;
|
||||
$value += $ids->{$_} while (grep { /^$glob$/ } keys %$ids);
|
||||
$ids->{ $ref } = $value;
|
||||
my $glob = Tinyglob::tinyglob($ref);
|
||||
if ($glob ne $ref)
|
||||
{
|
||||
my $value = 0;
|
||||
$value += $ids->{$_} while (grep { /^$glob$/ } keys %$ids);
|
||||
$ids->{ $ref } = $value;
|
||||
}
|
||||
}
|
||||
|
||||
my $ret = undef;
|
||||
|
|
|
|||
Reference in a new issue