my $fh; open $fh , "REPSTAT.conf"; my $line; my %conf; while($line = <$fh>) { @a = split(/ +/, $line); $conf{$a[0]} = $a[1]; } print $conf{'LOG_PATH'}."\n";