I need to open the directory and need to process the current log file for analyzing the contents. So, needs to get the last modified file in that directory.
We can use dirhandle or opendir. However, it lists according to the naming conversion. In addition, I personally do not like to use any UNIX commands like ... "@array = `ls -lrt`".