I need to some guidance to create a perl script which will extract some specific component of log messages from log files on multiple operating systems (Linux, HP-UX, AIS and Solaris). The script will identify the operating system and extract some specific component of log messages from that system based on user's requirement. I have figured out a way that enables the script to identify the operating system it is running on. I need some tips/guidance to move forward. If somebody has a prewritten script which is related to this problem, it would be of great help to me. Please let me know if anybody would like to know more about the problem at hand in order to guide me.