in reply to Simple question

Sure is : print "${digit}th" if $digit > 3;

HTH.