Skip Menu |

This queue is for tickets about the Config-Simple CPAN distribution.

Report information
The Basics
Id: 76952
Status: new
Priority: 0/
Queue: Config-Simple

People
Owner: Nobody in particular
Requestors: ohiocore [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 4.58
  • 4.59
Fixed in: (no value)



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.
From: ohiocore [...] gmail.com
Posted repo w/ patches to github: https://github.com/atz/Config-Simple