There are still a couple of loose ones in there. -2 or -3 if you count the superfluous ;
($£=pop)=~/1./?0:qw(0 st nd rd)[$£%10]or'th'
My best alternate ain't even close, substr is too long.
sub nthit{ substr'thstndrd',($£=pop)=~/1./||($£%=10)>3?0:2*$£,2 }
In reply to Re: English Date-Suffixes
by BrowserUk
in thread English Date-Suffixes
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |