in reply to XML::Simple forcearray problem
Are you sure the snippet you provide is the actual code giving the problem?
Here an excerpt from XML::Simple:
Another issue is in the file-reading part:
And $StrictMode is true only if you use XML::Simple in this way: use XML::Simple qw(:strict);if($StrictMode and $dirn eq 'in') { croak "No value specified for 'ForceArray' option in call to XML +$dirn()"; } $opt->{forcearray} = 0;
Another issue is in the file-reading part:
This use of FILE and $FILE isn't going to work.open(FILE, "someFile.DTD") or die "can't open file: $!"; #... my $config = XMLin($FILE, forcearray => 1);
In Section
Seekers of Perl Wisdom