<?xml version="1.0" encoding="windows-1252"?>
<node id="1007816" title="Re^6: Reading files n lines a time" created="2012-12-07 14:51:16" updated="2012-12-07 14:51:16">
<type id="11">
note</type>
<author id="823119">
naturalsciences</author>
<data>
<field name="doctext">
&lt;p&gt;Yes it would break down but right now I'm specifically looking for neighbouring dupes :) (There is an actual reason to suspect they are positioned so in those files)
It wouldn't be hard for me to write a push/shift code that would kind of like slide a 4-line long reading frame over the whole text file.&lt;/p&gt;&lt;p&gt; But I ran totally in a ditch trying to do the same so that the frame wouldn't "slide" but would be "lifted" four lines at a time. &lt;/p&gt;
&lt;p&gt;Then I could just &lt;/p&gt;
&lt;p&gt; &lt;code&gt; if ($frame&amp;#91;1&amp;#93;!=m/$frame&amp;#91;3&amp;#93;/){print @frame} &lt;\code&gt; &lt;/p&gt;
 &lt;p&gt; But for some reason I mess the populating/emptying/and moving the frame up so readily. &lt;/p&gt;

edit: disregard all that - a sliding frame is exactly what I need. So I guess were done here :D. Thank you all! Learned a lot of other stuff on the side also :)
</field>
<field name="root_node">
1007560</field>
<field name="parent_node">
1007813</field>
</data>
</node>
