open(FILE,'../env.conf') or die "not there"; #### my $content = do {local $/; }; #### my %conf = map { /^([^=]+)=(.*)$/; $1 => $2 } split /\n/, $content; #### my %conf; while () { chomp; my ($k,$v) = $_ =~ /^([^=]+)=(.*)$/; $conf{$k} = $v if $k; }