note
Aragorn
Variable <code>@outLines</code> isn't emtpied when the contents of it are written to the file. So the contents of every file are added to it, after which the complete array (including the old contents) is written to <code>adjusted.learn</code>. Instead of having a global <code>@outLines</code> array, you should declare it within the <code>process</code> subroutine:
<code>
sub process
{
my @outLines = ();
...
}
</code>
Now, every time when <code>process</code> is called, the <code>@outLines</code> array is created afresh.
<p/>
Another option would be to insert a <code>@outLines = ()</code> statement after writing to the <code>adjusted.learn</code> file.
<p/>
Arjen
357183
357183