note
kennethk
Please read [id://174051]. Please be sure when you post that the code runs, and provide expected output from provided inputs, all wrapped in <c><code></c> tags. In this scenario, that dangling <c>use ;</c> at the top of the file is a syntax error and is a red flag that you didn't test what you posted.
<p>What are you using as learning material? Try [https://qntm.org/files/perl/perl.html|Learn Perl in 2 hours 30 minutes] or [http://learn.perl.org]. I note that you do not use [doc://strict] or [doc://warnings]. It's understandable that an old script might not have these, but any new code should use them. See [id://87628].
<p>The easiest solution for your spec would be to insert
<c>
print "ETXLinkID,TranscomLinkID,TranscomLen,TranscomLenFrac,EtxLenFrac,EtxLen\n";
</c>
before that last <c>foreach</c> loop. Is there subtlety in the challenge I am missing?
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-712372">
<hr />
<p>#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.</p>
</div></div>
1184558
1184558