http://www.perlmonks.org?node_id=1022154

kar_thik82 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks

Just want to what is the best way to read the rotated file i am developing a log monitoring solution for Solaris Syslog where i am reading the /var/adm/messages file. At the time of rotation the Archived file messages.1 will have some latest errors how to handle this situation. The current logic which i am trying to concatenate the two files messages and messages.1 and sending the errors. Is there any best possible way to handle this log rotation other than concatenating the files. which is a very slow process