- or download this
@xreflines=<XREF>;
#remove the blank lines from the araary
@xreflines = grep /\S/, @xreflines;
- or download this
$x=grep /$xrefvalue/, @xreflines;
- or download this
my %xreflines = map { /(\d+)/, 1 } <XREF>;
...
print XFILE "$line \n";
}