Use globing in notation
This commit is contained in:
parent
375640dba8
commit
6952c85c5b
1 changed files with 10 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use XML::LibXML;
|
use XML::LibXML;
|
||||||
|
|
||||||
|
use ACU::Tinyglob;
|
||||||
|
|
||||||
sub new
|
sub new
|
||||||
{
|
{
|
||||||
my $class = shift;
|
my $class = shift;
|
||||||
|
|
@ -340,6 +342,14 @@ sub compute ($$$;$$$)
|
||||||
$ref =~ s/\$LOGIN/$login/;
|
$ref =~ s/\$LOGIN/$login/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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;
|
my $ret = undef;
|
||||||
|
|
||||||
my $result = (
|
my $result = (
|
||||||
|
|
|
||||||
Reference in a new issue