in reply to Help in reading log file

There are a few things I'd do differently, first the open I'd write as

open my $FH, '<', $file or die "Can't open $file: $!\n";

The loop I'd rewite as this

use Data::Dumper; my @arr; while (<DATA>) { chomp; push @arr, $1 if m{^ +\s+(//.*)}; } print Dumper \@arr; __DATA__ // humpty dumpty // sat on a wall -// eating her curds and whey // humpty dumpty // had a great fall
which produces
$VAR1 = [ '// humpty dumpty', '// sat on a wall', '// humpty dumpty', '// had a great fall' ];
Just a couple of points