This might be what you are looking for......<br>With the lines of your file in @lines.....<br><FONT FACE=monospace><br>#!/usr/local/bin/perl<br><br>@lines = ( 'data1¦data1¦data1',<br> 'data2¦data1¦data1',<br> 'data3¦data1¦data1',<br> 'data4¦data1¦data1',<br> 'data5¦data1¦data1');<br><br>foreach $line (@lines) { print "$line\n"; }<br><br>$garbage = splice(@lines,2,1);</font><font color=red>splice</font> pulls the elements from the array<br> starting on the third element and going<br> and going 1 and returns the removed<br> elements. This example removes<br> the 'data3' line.<FONT FACE=monospace><br><br>print "\n\n";<br>foreach $line (@lines) { print "$line\n"; }<br><br>print "\n\n$garbage\n";<br></font> <p> <br><a href=mailto: > </a><br><a href= > </a><br> keep the rudder amid ship and beware the odd typo