Subject: | guess_syntax called despite explicit syntax |
In effect, the "syntax" constructor argument is not actually supported.
If I do:
my $conf = Config::Simple->new(filename => $file, syntax => 'ini')
Config::Simple still tries to guess the file syntax by reading it,
ignoring the argument I passed in.
At line 168:
- $self->{_SYNTAX} = $self->guess_syntax(\*FH) or return undef;
+ $self->{_SYNTAX} ||= $self->guess_syntax(\*FH) or return undef;
That would fix it.