http://www.perlmonks.org?node_id=103914


in reply to What does the ternary statement actually do?

The ternary just allows an expression to have one of two values based on a test. That is:
$a = 1 ? 'abc' : 'def'; # sets $a to 'abc' $a = 0 ? 'abc' : 'def'; # sets $a to 'def'