my $node_map = ();
if (open(XREFFILE, $mapfile)) {
- while ( <XREFFILE> ) {
+ my $line;
+ while ( $line = <XREFFILE> ) {
# parse the tab-separated entries and insert them into the map:
- chomp($_);
- my @entries = split(/\t/, $_);
+ chomp($line);
+ my @entries = split(/\t/, $line);
if (scalar (@entries) == 3) {
$node_map->{$entries[0]} = [$entries[1], $entries[2]];
} else {
- print STDERR "Invalid entry in the node file $mapfile: $_\n";
+ print STDERR "Invalid entry in the node file $mapfile: $line\n";
}
}
close (XREFFILE);
{
my $node = shift;
my $node_id = shift;
- my $node_xhtml_id = shift;
+ my $node_hxmlt_id = shift;
my $file = shift;
my $original_func = \&t2h_default_external_href;
my $section_name_map = $translated_books{$map_name};
my $node_text = main::remove_texi($node);
if (defined($section_name_map->{$node_text})) {
- (my $node_id, $node_hxmlt_id) = @{$section_name_map->{$node_text}};
+ ($node_id, $node_hxmlt_id) = @{$section_name_map->{$node_text}};
} else {
print STDERR "Unable to find key '$node_text' in section_name_map for book $map_name\n";
}