Subject: | member 'set;' doesn't exist |
The documentation describes a member 'set' which seems not to exist. It
doesn't exist in the source code and the module doesn't seem to depend
on anything else that might provide it.
The code:
use strict;
use warnings;
use Config::Tiny;
my $cfgStr = <<CFG;
[section]
one=twp
three= four
Foo =Bar
empty=
CFG
print "Before:\n$cfgStr\n";
my $config = Config::Tiny->new();
my $cfg = $config->read_string ($cfgStr);
$cfg->set ('section', 'empty', 'flibble');
print "After:\n", $cfg->write_string (), "\n";
generates the error:
Can't locate object method "set" via package "Config::Tiny" at
noname1.pl line 18.