Here you go - Hash creation code:
use strict; use warnings; my %hash =( 'alerts' => [ { 'min_failure_count' => '3', 'status_history' => { 'status' => [ 1, 1, 1, 0, 0, 0, 1, 1, 0, 0 ], 'ts' => [ 1347395526, 1347395226, 1347394926, 1347394626, 1347394326, 1347394026, 1347393726, 1347393426, 1347393126, 1347392826 ] }, 'status_code' => 1, 'original_status_code' => 'BAD', 'dimensions' => { 'cluster' => '1', 'filesystem' => '/', 'hostgroup' => 'hiho', 'service' => 'system.fs-us +ed_pct', 'host' => 'limonata' }, 'best_group' => 'NO GROUP', 'timestamp' => 1347395226, 'text' => '95.019 (value) > 95 (max limit +) between Tue 20:19 - Tue 20:2+0 (UTC)', 'check_type' => 'system.fs-used_pct', 'window_size' => '3' } ], 'bad_alerts' => 1, 'recovery_alerts' => 0 );
My guess is that you were looking for the parens ().

             I hope life isn't a big joke, because I don't get it.
                   -SNL


In reply to Re: Recreating hash by NetWallah
in thread Recreating hash by kitkit201

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.