|Subject:||Config::IniFiles with handle_trailing_comment doesn't parse trailing comments correctly|
|Date:||Tue, 16 Jun 2015 07:59:30 +0000|
|From:||Rohan Carly <firstname.lastname@example.org>|
When I insert a comment containing a semicolon into an INI file, I was surprised to see only half of it being treated as a comment, with the reset being treated as part of the parameter value.
Here is my test code:
my $ini_file_contents = "[abc]\ndog=cat ; a comment ; further comment";
my $c = Config::IniFiles->new(
Expected output: cat
Actual output: cat ; a comment
I tried this with version 2.86.
I was hoping that you might be able to correct this behaviour. I note that some other INI file parsers, such as crudini (command line util), provide the result I expect.