perlquestion
brusimm
I am new. New to Perl, semi new to programming. I have a new headache. here is my delima:<br/>
<p>I want to open a file with multiple columns. (Redundant statement, seeing as how I want to sort on the first column)<br/>
<p>I can open a file, read through it and print it to screen.<br/>
<p>But I can't seem to locate the key process on sorting the contents of a file before printing to screen, never mind printing it to a file.<br/>
<p>I have procured the O'reilly book, learning perl.
I have scoured many websites... but I cannot connect the dot or dots to make my task come to fruition.<br/>
<p>Hence, assistance is asked for...<br/>
<p>Here is the code I've been using, without the sort routine:<br/>
<br/>
<code>
open (SOMELIST, "somelist"); #opening standings, putting in array SOMELIST
while ($record = <SOMELIST>)
{ print $record; }
close (SOMELIST)
</code>
<p>Where / how does one sort somelist?<br/>
Any / all help, input, prewritten code (optimal, seeing as how my logic evades the dots connecting.) would be appreciated.<br/>