Help for this page

Select Code to Download


  1. or download this
    ($£=pop)=~/1./?0:qw(0 st nd rd)[$£%10]or'th'
    
  2. or download this
    sub nthit{
    substr'thstndrd',($£=pop)=~/1./||($£%=10)>3?0:2*$£,2
    }