reference-from-sgm.perl: fix Perl error

This commit is contained in:
Phil Williams 2017-03-07 15:54:08 +00:00
parent e983e33180
commit a5c99ca660

View File

@ -60,7 +60,7 @@ foreach my $system (keys %DOC) {
}
open(TXT,">$outfile") || die($outfile);
foreach my $doc (@ORDER) {
die("can't find '$doc' for ref '$system'") unless defined @{$DOC{$system}{$doc}};
die("can't find '$doc' for ref '$system'") unless defined $DOC{$system}{$doc};
foreach my $line (@{$DOC{$system}{$doc}}) {
print TXT $line."\n";
}