Skip Menu |

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

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

People
Owner: tlinden [...] cpan.org
Requestors: klinebch [...] gmail.com
Cc:
AdminCc:

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



Subject: Here documents are not ignoring XML syntax
I have a config file with a here document embedded that has XML syntax within (using, for example, <runtime> as part of the here-document content). Since it's inside a here document, it should be ignored from the config itself and should be included as the content of that configuration value. Instead, I'm getting the error: Config::General: Block "<runtime>" has no EndBlock statement (level: 2, chunk 36)! at C:/@chris/svn/dotNet Configurator/bin/../lib/Tools/Config.pm line 107
I cannot reproduce this. Example script: #!/usr/bin/perl use lib qw(blib/lib); use Config::General qw(ParseConfig); use Data::Dumper; my %cfg = ParseConfig(shift); print $Config::General::VERSION . "\n"; print Dumper(\%cfg); Example config: test = <<EOF <breakfast_menu> <food> <name>Belgian Waffles</name> <price>$5.95</price> <description> two of our famous Belgian Waffles with plenty of real maple syrup </description> <calories>650</calories> </food> </breakfast_menu> EOF Output: ./test.pl here.cfg 2.49 $VAR1 = { 'test' => '<breakfast_menu> <food> <name>Belgian Waffles</name> <price>$5.95</price> <description> two of our famous Belgian Waffles with plenty of real maple syrup </description> <calories>650</calories> </food> </breakfast_menu>' };
no response anymore. closed case.