title: Extract part of text from file by delimiter Perl
body: <p>I have following type of text file    </p>
  
  <pre><code>helllo
  worlsadas
  asdfdfsgf
  eqweqqweq
  
  
  asdsadsadsa
  asdas
  dsgfv
  zczcxzfada
  
  
  asdsadas
  asd
  safdfgdsg
  asdsada
  
  ....
  </code></pre>
  
  <p>So there are two empty rows between each portion of useful text. I need to extract each portion such portion of text, for instance in array or hash(now it doesn't matter).<br>
  What is the most acceptable way to do this. I have some ideas : </p>
  
  <ol>
  <li><p>To use regex to extract one entry <code>^\n\n(.*\n){1,5}\n\n</code>, but there
  two problems here first is that text file starts without two new
  lines, and how to get all entries in one expression or I have to
  read 8 lines and than extract code with the help of previous regex. </p></li>
  <li><p>Simply read file by lines, and do some stuff each 8 line.  </p></li>
  <li><p>Your variant</p></li>
  </ol>
  
  <p>Please suggest the right way to perform this, I am newbie, so maybe there is more convenient way to do this.<br>
  I would be grateful for any help.</p>