title: How do I read a file which is constantly updating?
body: <p>I am getting a stream of data (text format) from an external server and like to pass it on to a script line-by-line. The file is getting appended in a continuous manner. Which is the ideal method to perform this operation. Is IO::Socket method using Perl will do? Eventually this data has to pass through a PHP program (reusable) and eventually land onto a MySQL database.</p>
  
  <p>The question is how to open the file, which is continuously getting updated?</p>