I have Perl script which appends a new line to the existing file every 3 seconds. Also, there is a C++ application which reads from that file.
The problem is that the application begins to read the file after the script …
I've been googling for a while, but I cannot find a function the read just first line of a file.
I need to read first line of a text file and extract the date from it.
new to perl.