Subject: | -StoreDelimiter works even -SplitPolicy is not 'custom' |
Date: | Mon, 24 Aug 2015 15:15:51 -0600 |
To: | bug-Config-General [...] rt.cpan.org |
From: | Maxwell Carey <mcarey [...] ucar.edu> |
According to the docs:
"Please note that the delimiter used when saving a config (save_file() or
save_string()) will be chosen according to the current -SplitPolicy. If
-SplitPolicy is set to 'guess' or 'whitespace', 3 spaces will be used to
delimit saved options."
However, even if -SplitPolicy is 'guess', the value of -StoreDelimiter is
used:
use strict;
use warnings;
use Config::General;
my $conf = Config::General->new(
-SplitPolicy => 'guess',
-StoreDelimiter => ' = '
);
$conf->save_file('settings.conf', { foo => 'bar' });
__END__
foo = bar # not 'foo bar'
Is this a documentation bug or a code bug?