xml input

<event_list > <event> <severity> critical</severity> <priority> medium</priority> <category> SLB_OP_Service</category> <time_first_received> 2017-06-06T15:37:17.414Z</time_first_received> <assigned_user> <custom_attribute self="https://omi.it.slb.com:443/opr-web +/rest/9.10/event_list/031c3c70-4ace-71e7-0b5b-88fb83170000/custom_att +ribute_list/SLB_SSRID" type="urn:x-hp:2009:software:data_model:opr:ty +pe:event:custom_attribute" version="1.0"> <name> SLB_SSRID</name> <value> 957</value> </custom_attribute> <custom_attribute self="https://omi.it.slb.com:443/opr-web +/rest/9.10/event_list/031c3c70-4ace-71e7-0b5b-88fb83170000/custom_att +ribute_list/Service%20Name" type="urn:x-hp:2009:software:data_model:o +pr:type:event:custom_attribute" version="1.0"> <name> Service Name</name> <value> IPT</value> </custom_attribute> </custom_attribute_list> </event> </eventlist>

Dumber output :

$VAR1 = { 'severity' => 'critical', 'appname' => 'Instant Messaging - Lync External(2667)', 'line' => 1, 'ticketnum' => 'INC000018455813', 'remedy_queue' => [ 'Global Service Desk' ], 'event_age' => '2157 h' }; $VAR2 = { 'event_age' => '2157 h', 'remedy_queue' => [ 'Global Service Desk' ], 'ticketnum' => 'INC000018455811', 'line' => 2, 'severity' => 'critical', 'appname' => 'Instant Messaging - Lync External(2667)' }; $VAR3 = { 'ticketnum' => 'INC000018450232', 'severity' => 'critical', 'appname' => 'EngHouse CCE(1103)', 'line' => 3, 'event_age' => '2182 h', 'remedy_queue' => [] };

8 July 2017 Athanasius added code tags


In reply to Re^2: Sort the hash array by snehit.ar
in thread Sort the hash array by snehit.ar

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.