my @status_text = qw(LOW MODERATE HIGH); my $status = 2; print $status_text[$status];
In reply to Re: Multiple if-else statements using C-style ternary operator
by Marshall
in thread Multiple if-else statements using C-style ternary operator
by gansvv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |