Skip Menu |

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

Report information
The Basics
Id: 112857
Status: resolved
Priority: 0/
Queue: Config-General

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Same Line Closing Block Breaks Parser
Date: Wed, 9 Mar 2016 07:07:58 -0800
To: bug-Config-General [...] rt.cpan.org
From: "John L. Poole" <jlpoole56 [...] gmail.com>
test1.pl: ===================== use strict; use warnings; use Config::General; my $config_file = "foo2.ini"; # # Create a config handle and # read in all the variables from our file # our $conf = Config::General->new($config_file ); our %conf = $conf->getall; ===================== foo2.ini: ===================== <xml> <apple> </apple> # below breaks because closing tag is on same line #<banana></banana> </xml> ===================== Activating the banana line causes this error message: Config::General: Block "<xml>" has no EndBlock statement (level: 2, chunk 5)! at test_config1.pl line 11. Conclusion: the closing tag must be on a new line. The documentation at http://search.cpan.org/~tlinden/Config-General-2.60/General.pm#BLOCKS should warn of this limitation. -- Email Rider John Laurence Poole
Thanks for the hint. Updated POD in 2.61.