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

Re: [ID 20000307.005] Date Problem

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
March 7, 2000 09:56
Subject:
Re: [ID 20000307.005] Date Problem
Message ID:
7275.952451756@chthon
>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.

--tom

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About