develooper Front page | perl.perl5.porters | Postings from March 2000

Re: [ID 20000307.005] Date Problem

Thread Previous | Thread Next
Tom Christiansen
March 7, 2000 09:56
Re: [ID 20000307.005] Date Problem
Message ID:
>Or, more accurately:

># The endings for ordinal numbers.
>@ORDINALS = ('th', 'st', 'nd', 'rd', ('th') x 17, 'st', 'nd', 'rd',
>             ('th') x 7, 'st');

>print "... the $day$ORDINALS[$day] of $month";

>But this is getting off-topic.  :)

Ah, but it's cool though, which covers a a multitude of sins.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About