What is the name of the following type of if/else syntax:
print $foo = ($hour < 12) ? \"Good morning!\" : \"Good afternoon!\";
I couldn\
It's called the ternary operator - although many people call it the "?: operator" because "ternary" is such a seldom-used word.
?: