title: Using an array for input to while loop
body: <p>This <code>while</code> loop works perfectly:</p>
  
  <pre><code>while read -r line
      do
          eval ${line}
      done &lt; "${FILE}"
  </code></pre>
  
  <p>However, if I try to use an array for input, it fails.</p>
  
  <pre><code>while read -r line
      do
          eval ${line}
      done &lt; "${array[@]}"
  </code></pre>
  
  <p>Is it just not possible, or am I doing something incorrectly?</p>