Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: XML::Simple forcearray problem

by larsen (Parson)
on Aug 07, 2003 at 19:38 UTC ( #282007=note: print w/replies, xml ) Need Help??

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:
if($StrictMode and $dirn eq 'in') { croak "No value specified for 'ForceArray' option in call to XML +$dirn()"; } $opt->{forcearray} = 0;
And $StrictMode is true only if you use XML::Simple in this way: use XML::Simple qw(:strict);

Another issue is in the file-reading part:
open(FILE, "someFile.DTD") or die "can't open file: $!"; #... my $config = XMLin($FILE, forcearray => 1);
This use of FILE and $FILE isn't going to work.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://282007]
[Discipulus]: discutere in eatalian is neutral: but discutere with wife sounds implicitly negative..
[erix]: what's the offending signature?
[Discipulus]: 'give man a fish erix it sonds like a push towards omosexuality.. ;=)
[Discipulus]: see Re: from txt file to array erix
[erix]: yeah, I ask for the text (I don't see signatures)
[Discipulus]: dear brother karl has "Furthermore I consider that Donald Trump must be impeached as soon as possible" in his sig

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2017-06-22 12:29 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (519 votes). Check out past polls.