note
GrandFather
<p>That's a bit like asking "How should I drink?". It depends a great deal on what it is you are drinking!</p>
<p>First up:</p>
<ol>
<li>What does your data look like?</li>
<li>How big is the file?</li>
<li>How often does it need to be done?</li>
<li>Is sort time important?</li>
<li>Will the sorted data be reused in some fashion?</li>
</ol>
<p>Actually, many of those are related to each other.</p>
<p>Because you were good and supplied some code, I'll show you some:</p>
<c>
my @contents = sort <SOMELIST>;
print @contents;
</c>
<p>and because I'm kind I'll give you some hints:</p>
<ul>
<li>Check through the [Tutorials] section</li>
<li>Read up about [doc://sort]</li>
<li>Study [id://9108] and the replies to [id://476700]</li>
<li>[Super Search] "sort column" in SoPW and read some of the wealth of material already posted</li>
</ul>
<div class="pmsig"><div class="pmsig-461912">
<hr>DWIM is Perl's answer to Gödel
</div></div>
584602
584602