in reply to Configuration file design
Then you can simply read the file, do"root" => "/path/to/root", "filepath" => "/path/to/files", "ftp_instances" => [ { "sourcepath" => "/source/path/on/server", "savepath" => "/save/files/here", }, { "sourcepath" => "/source/path/on/server", "savepath" => "/save/files/here", }, ]
and you´re gone.eval "%CFG = (" . readfile("cfg") . ");";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Configuration file design
by Juerd (Abbot) on Jan 04, 2005 at 16:23 UTC | |
by holli (Abbot) on Jan 04, 2005 at 19:48 UTC |