in reply to Re: Multiple if-else statements using C-style ternary operator
in thread Multiple if-else statements using C-style ternary operator

my %status_message = { 2 => 'HIGH', 1=>'MODERATE', 0=>'LOW' };
That's not what you want. That creates a hash with a key of the form "HASH(0xDEADBEEF)", and an undefined value has the value.

Perhaps you intended to write paren instead?