- or download this
print "At $hash{alerts}[0]{timestamp}: $hash{alerts}[0]{text}\n";
^ ^ ^
...
+ - hash key
# {} means hash; [] means array
- or download this
say "$_ => $hash{$_}" for keys %hash;
- or download this
alerts => ARRAY(0x2562880)
recovery_alerts => 0
bad_alerts => 1
- or download this
print $hash{alerts}[0];
- or download this
HASH(0x379350)
- or download this
'alerts' => [
{
^
|
+ - beginning of hash
- or download this
say "$_ => $hash{alerts}[0]{$_}" for keys %{$hash{alerts}[0]};
- or download this
min_failure_count => 3
status_history => HASH(0x4ec628)
...
text => 95.019 (value) > 95 (max limit) between Tue 20:19 - Tue 20:
+20 (UTC)
window_size => 3
check_type => system.fs-used_pct
- or download this
print "At $hash{alerts}[0]{timestamp}: $hash{alerts}[0]{text}\n";
^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^