if ($digit > 3) { print "$digit" . "th"; } #### if ($digit > 3) { print "$digit[somemagicalnonprintingcharacter]th"; }