title: script is reading only last line of an input file
body: <p>Value in my input file (list_muni_nav.txt). Each line is a path for a file, here 'test' and 'test2' are the filename.</p>
  
  <pre><code>/iwmnt/default/main/Content/Munic/WORKAREA/work/templatedata/muni_site/security/data/test
  /iwmnt/default/main/Content/Munic/WORKAREA/work/templatedata/muni_site/security/data/test2
  </code></pre>
  
  <p>My perl script(as below) should read each line in input file and execute them. But, except last line rest of the lines are not being located by the script. Please see the result</p>
  
  <pre><code>    my $content_list = '/home/p12/scripts/list_muni_nav.txt';
  
  print "\t*****************START***************************\n";
  print "\tOpening file $content_list\n";
  if (open FILE,"$content_list") {
          my $line = &lt;FILE&gt;;
          chomp($line);
          while ($line ne "") {
                  print "\t Applying EAs to file $line\n";
  
                  my $setEAVersion= "$getAttrib -s TeamSite/Assocation/Version=1 \"$line\"";
                                   `$setEAVersion`;
                  my $setEADCRType= "$getAttrib -s TeamSite/Templating/DCR/Type=muni_site/nav \"$line\"";
                                   `$setEADCRType`;
                  my $setEAFormValid= "$getAttrib -s iw_form_valid=true \"$line\"";
                                   `$setEAFormValid`;
  
                  print "\t EAs applied successfully to $line\n";
                  print "\t**********************************************************\n";
  
                  $line = &lt;FILE&gt;;
                  chomp($line);
          }
  </code></pre>
  
  <p>RESULT:</p>
  
  <pre><code>        *****************START***************************
          Opening file /home/pbiswa01/scripts/list_muni_security.txt
           Applying EAs to file /iwmnt/default/main/Content/Munic/WORKAREA/work/templatedata/muni_site/security/data/test
  ERROR:02005: Error locating /iwmnt/default/main/Content/Munic/WORKAREA/work/templatedata/muni_site/security/data/test
  ERROR:02005: Error locating /iwmnt/default/main/Content/Munic/WORKAREA/work/templatedata/muni_site/security/data/test
  ERROR:02005: Error locating /iwmnt/default/main/Content/Munic/WORKAREA/work/templatedata/muni_site/security/data/test
           EAs applied successfully to /iwmnt/default/main/Content/Munic/WORKAREA/work/templatedata/muni_site/security/data/test
          **********************************************************
           Applying EAs to file /iwmnt/default/main/Content/Munic/WORKAREA/work/templatedata/muni_site/security/data/test2
           EAs applied successfully to /iwmnt/default/main/Content/Munic/WORKAREA/work/templatedata/muni_site/security/data/test2
          **********************************************************
  </code></pre>
  
  <p>Please help. Thank you!!</p>