in reply to XML::Simple forcearray problem
Try this instead:my $ref = XMLin([xml file or string>], [, <options>]);
In your code, you XMLin $FILE, but you don't declare $FILE in your code submitted. What I expect is happening is that you are trying to XMLin '$FILE' (the undeclared variable) thinking it is 'FILE' (the file handle). By XMLin'ing '$FILE' (which is empty) you are calling XMLin without all of the required arguments, thus throwing the error message mentioned.my $config = XMLin("someFile.DTD", forcearray => 1);
|
|---|