Welcome to the Monastery | |
PerlMonks |
Re^2: Multiple if-else statements using C-style ternary operatorby JavaFan (Canon) |
on Jul 11, 2011 at 23:04 UTC ( [id://913800]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|