note
dreadpiratepeter
<p>When you say "doesn't work" it tells us nothing. Try telling us what your expected output and actual output were.</p>
<p>For starters, I would add:
<code>
use strict;
use warnings;
</code> to your script make coding errors more obvious. and I would hazard a guess that you are not opening the file properly. checking the return code of the open would find that:
<code>
open IN,"<","file" or die "error opening file: $!";
</code>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-137449">
<br><br>-pete
<br><i>"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."</i>
</div></div>
926294
926294