title: extract lines from file as an element perl
body: <pre><code>while (&lt;IN&gt;) {
    if (/&lt;day&gt;/../&lt;\/day&gt;/) {
      push (@temp, $_);
    }
  }
  </code></pre>
  
  <p>hi, I want to push in to @temp array all the file lines between <code>&lt;day&gt;</code> and <code>&lt;/day&gt;</code> as an element not line by line, because later on I will search after something in that element and if not equals I will exclude it. any ideea what to use in order to do so? thanks</p>