Shouldn't this.

$twig->parsefile($input_xml);

Be this

$twig->parsefile($fh);

I got this error.

d_from_repair></returned_from_repair><ng_assignment_flag>ready</ng_ass +ignment_flag><sys_class_name>cmdb_ci_esx_server</sys_class_name><u_pr +ocurement_product_number></u_procurement_product_number><attributes>< +/attributes><u_location_stamp></u_location_stamp><fault_count>0</faul +t_count><operational_status>1</operational_status><cfg_auto_change></ +cfg_auto_change></result></response>: File name too long at vance.pl line 39. at vance.pl line 39. at /usr/lib/perl5/site_perl/5.22/XML/Twig.pm line 2874. XML::Twig::_croak("Couldn't open <?xml version=\"1.0\" encoding=\" +UTF-8\"?><response"..., 0) called at /usr/lib/perl5/site_perl/5.22/XM +L/Twig.pm line 794 XML::Twig::_checked_parse_result(undef, "") called at /usr/lib/per +l5/site_perl/5.22/XML/Twig.pm line 782 XML::Twig::parsefile(XML::Twig=HASH(0x6003eb060), "<?xml version=\ +"1.0\" encoding=\"UTF-8\"?><response><result><chec"...) called at van +ce.pl line 39 Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. DB<1> q

In reply to Re^6: Need help with complex hash of hashes. by vlturner
in thread Need help with complex hash of hashes. by vlturner

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.