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{$_}\
I'm planning on starting my perl script with a commandline argument, a
filename. I open the file and parse through it line by line, OK, but I'm
getting a blank on how to grab the value out of the file for a variable in
the script. The file will read like:
-TestClass = 3
-TestCase = all
-Proxy_IP =