in reply to
qw(0 st nd rd)[pop=~/(1?.)$/]or"th"
will do any integer.
Note that for pre-5.6 perl you have to do
because qw was translated into split' ','...' during compilation.
Electric dreams (yikes!)
2001: A Space Odyssey
None of the above, please specify
Results (137 votes),