develooper Front page | perl.perl5.porters | Postings from November 1999

Re: PROPOSAL: D'oh::Year [was: Re: Making -DPERL_Y2KWARN useful after 946684800]

Thread Previous | Thread Next
Jarkko Hietaniemi
November 6, 1999 10:46
Re: PROPOSAL: D'oh::Year [was: Re: Making -DPERL_Y2KWARN useful after 946684800]
Message ID:

 > Michael Schwern: 
 > > Ahh, nature endevors long and hard to produce a better moron!  Expect
 > > to see this post-y2k:  $year -= 100;  "200$year";   D'oh::Year catches both
 > > misuses.
 > I wish I had pointed this out before, but I think Michael is correct
 > here.  Example: 
 > 	Check if the value returned is greater than 100, and if so,
 > 	subtract 100 from the returned value.  This will always give
 > 	you a one-digit or two-digit number...

Shall we add also "21" cases to the D'oh::Year to pre-empt problems
with Perl 17?

No, seriously, I also am with Michael here.  The moronity of the
universe is a monotonically increasing function, the Y2K problems
do not vanish after the Y2K itself joins its brethren in the long
chain of seconds of the past.

 > That's on page 141 of `Perl for Dummies'.

You really do adore that book, don't you? :-)

$jhi++; #
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

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