if ( $x ) { print "true\n"; } else { print "false\n"; } #### print "The truth value of x is " . ( $x ? 'true' : 'false' ) . "\n";