x27;, as you posted, then you'll have
to strip that character.
-Original Message-
From: Jos I. Boumans [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 2:34 PM
To: Bob Bondi; Beginners-perl
Subject: Re: Getting values from a file
assuming you are alright with storing the
assuming you are alright with storing them in a hash as key value pairs,
something like this will probably work for you:
open I, "$ARGV[0]" or die $!;
my %conf;
while(){
chomp;
next unless $_;
my ($key,$val) = split /\s*=\s*/;
$conf{$key} = $val;
}
for (keys %conf) { print "$_ = $conf{$_}\