I have a script which takes list of logs from Log directory and do some operation.

I have a performance issue over here while doing these operation. Because I have large set of `log` files and need to do operation on each of the files. Currently my script is set in cron and its been running each hour. So I want to rewrite this file reading logic(`@content`) or need to increase the performance of this script which can do file operation faster than the current process.

Here is the script:

```
#/usr/bin/perl

use strict;
use warnings;
.
.

my $LogPath = "/path/to/log/file/";

my $list = `ls -1 $LogPath*.log`;

my @array_list = split(/\n/, $list);

foreach $file (@array_list){ 
    my $cat = `cat $file`;

    my @content = split(/\n/, $cat);

    foreach $line (@content) {
        ....
        #Doing some operation if the matching content found
        ....
        ....
    }
}

```

Any suggestions to modify this logic so that I can read each line of the each log file would be highly appreciated.