"be consistent" | |
PerlMonks |
Re: English Date-Suffixesby petral (Curate) |
on Nov 07, 2002 at 15:43 UTC ( [id://211093]=note: print w/replies, xml ) | Need Help?? |
And
qw(0 st nd rd)[pop=~/(1?.)$/]or"th"
will do any integer. Note that for pre-5.6 perl you have to do (qw(...))[index]because qw was translated into split' ','...' during compilation.   p
In Section
Meditations
|
|