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

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I was using the short c-style IF statment in my code and I understood it worked by EXPR ? TRUE :FALSE; however when I compiled this:

 6 < 8 ? $ans = "true" : $ans = "false";

$ans was false... can anyone explain what happened?