Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Think about Loose Coupling
 
PerlMonks  

Re: XML::Simple forcearray problem

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://282007]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.