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

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

From:
Uri Guttman
Date:
November 6, 1999 11:21
Subject:
Re: PROPOSAL: D'oh::Year [was: Re: Making -DPERL_Y2KWARN useful after 946684800]
Message ID:
x7d7tn2zp4.fsf@home.sysarch.com
>>>>> "MD" == Mark-Jason Dominus <mjd@plover.com> writes:

  MD> 	Check if the value returned is greater than 100, and if so,
  MD> 	subtract 100 from the returned value.  This will always give
  MD> 	you a one-digit or two-digit number...

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

and just following that he shows a modulo 100 example in the code. so he
is contradicting himself.

his text is functional for y2k but buggy for y3k and beyond. 

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com



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