open my $fh, '+<', 'test.cfg" or die "Cannot open file: $!\n";