Archived
1
0
Fork 0

Use globing in notation

This commit is contained in:
Mercier Pierre-Olivier 2013-09-26 10:55:56 +02:00
parent 375640dba8
commit 6952c85c5b

View file

@ -7,6 +7,8 @@ use strict;
use warnings;
use XML::LibXML;
use ACU::Tinyglob;
sub new
{
my $class = shift;
@ -340,6 +342,14 @@ sub compute ($$$;$$$)
$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 $result = (