in reply to English Date-Suffixes
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
Note that for pre-5.6 perl you have to do (qw(...))[index]because qw was translated into split' ','...' during compilation.
  p
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: English Date-Suffixes
by mtve (Deacon) on Nov 10, 2002 at 09:36 UTC | |
by petral (Curate) on Nov 12, 2002 at 20:07 UTC |
In Section
Meditations