Try setting the ForceArray options like this:
$xml = XMLin("teste.xml", KeepRoot => 1, ForceArray => [ 'phonenumber', 'prompt' ],);
izut

surrender to perl. your code, your rules.


In reply to Re^3: XML::Simple is doing too much for me! Help please. by izut
in thread XML::Simple is doing too much for me! Help please. by jdtoronto

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":