108 |
$log->logconfess("need argument $req") unless $arg->{$req}; |
$log->logconfess("need argument $req") unless $arg->{$req}; |
109 |
} |
} |
110 |
|
|
111 |
my $path = $arg->{path}; |
my $path = $arg->{path}; |
112 |
$self->{tag} = $arg->{tag}; |
$self->{tag} = $arg->{tag}; |
113 |
|
|
114 |
$log->logdie("normalisation yaml file '$path' doesn't exist!") if (! -e $path); |
$log->logdie("normalisation yaml file '$path' doesn't exist!") if (! -e $path); |
115 |
|
|
116 |
$log->info("using $path normalization YAML"); |
$log->info("using $path normalization YAML"); |
117 |
|
|
118 |
$self->{'import_xml'} = LoadFile( $path ) || $log->die("can't load $path: $!"); |
$self->{'import_xml'} = LoadFile( $path ) || $log->die("can't load $path: $!"); |
119 |
|
|
120 |
$log->debug("import yaml is ",sub { Dumper($self->{'import_xml'}) }, $self->{lookup} ? " using lookups" : "lookups disabled"); |
$log->debug("import yaml is ",sub { Dumper($self->{'import_xml'}) }, $self->{lookup} ? " using lookups" : "lookups disabled"); |
121 |
|
|