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