in reply to Reading from an INI file
Now where you would have used $NAME, you can use $hash{'NAME'}. (If I were you, I'd lowercase the key values to make typing easier.)open FILE, "recorder.ini"||die "file open failed\n"; chomp(@lines=<FILE>); foreach(@lines) { ($key,$value)=split(/=/,$_); $hash{$key}=$value; }
|
|---|