title: Why I am not getting "success" with this program?
body: <p>I have written the following program with the hope of getting success. But I could never get it.</p>
  
  <pre><code>my $fileName = 'myfile.txt';
  print $fileName,"\n";
  
  if (open MYFILE, "&lt;", $fileName) {
      my $Data;
      {
          local $/ = undef;
          $Data = &lt;MYFILE&gt;;
      }
      my @values = split('\n', $Data);
      chomp(@values);
  
      if($values[2] eq '9999999999')  {
          print "Success"."\n";
      }
  
  }
  </code></pre>
  
  <p>The content of myfile.txt is</p>
  
  <pre><code>160002
  something
  9999999999
  700021
  </code></pre>