in reply to Trouble working with Config::Simple
Perl doesn't do tilde expansion—that's a shell thing. Your last line would need to be:
$cfg->write("$ENV{HOME}/.kenesis");
Also, you're missing a semi-colon on the $special_item line.
Update: Config::Simple apparently reports errors (in write(), for instance) with false return values. As such, you could have known what was up with code like this:
$cfg->write("~/.kenesis") or die $cfg->error();
Reports:
'~/.kenesis' couldn't be opened for writing: No such file or directory
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trouble working with Config::Simple
by almut (Canon) on Jun 30, 2008 at 20:33 UTC | |
by linuxer (Curate) on Jun 30, 2008 at 21:18 UTC | |
by almut (Canon) on Jun 30, 2008 at 22:00 UTC | |
by jethro (Monsignor) on Jun 30, 2008 at 22:49 UTC | |
by kyle (Abbot) on Jun 30, 2008 at 20:35 UTC |