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?
In reply to Re^2: Multiple if-else statements using C-style ternary operator
by JavaFan
in thread Multiple if-else statements using C-style ternary operator
by gansvv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |