[-] l3mming@lemmy.world 2 points 2 days ago* (last edited 2 days ago)

You clearly haven't used Perl a lot. Perl's ternary looks like:

$even = $num % 2 ? "nay" : "yay";

Incidentally, it is also the same as PHP's, but mainly because PHP stole it.

l3mming

joined 3 weeks ago