- or download this
while (<LOG>) {
$alarm_details{ $1 } = $2 if /^(.*)=(.*)$/;
}
- or download this
{
open my $fh, '>', 'hash.i' or die $!;
print $fh Dumper(\@alarm_details);
}
- or download this
my $alarm_details_ref = do '/path/to/hash.i';
- or download this
my @old_alarm_details = @{do '/path/to/hash.i'};