in reply to Reading from an INI file
With an example:
In the remainder of the code, use $ini{$key} to access the ini values.my %ini; @file = grep m/^[^#]/, @file; #skips comments for (@file){ chomp; #mpolo is right! my ($key, $val) = split /=/,2; #splits the line $ini{ $key } = $val if $key; #if we have a key, store }
You can read up in perldata.
Hope this helps,
Jeroen
"We are not alone"(FZ)
|
|---|