in reply to Reopen file when contents changed?
The @data array would then contain the contents of the file, one entry per line. You could then just read $data[0], which would be the first line of the file. I think that it would update dynamically.use Tie::File; ... tie @data, Tie::File, $filename or die "Can't tie to $filename :$!\n";
|
|---|