[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] FW: What happens on January 1, 2006?



@ the watercooler today...

j

 
-----Original Message-----
From: Jay Hannah [mailto:jhannah@omnihotels.com] 
Sent: Tuesday, April 19, 2005 4:46 PM
Subject: RE: What happens on January 1, 2006?


  my $bdate = $q->param('birthmmddyyyy'); 
       my $invalid; 
       if(($bdate !~ /\//) && (($bdate > 2005) || ($bdate < (2005-100))) ) 

Looks funky to me. What format is $bdate in?

I can't imagine that code works... It might if > and < were gt and lt and $bdate was in YYYY/MM/DD, but who uses that date format?

j
 

> -----Original Message-----
> From: Sean Baker
> Sent: Tuesday, April 19, 2005 3:43 PM
> Subject: What happens on January 1, 2006?
> 
>  if(($bdate !~ /\//) && (($bdate > 2005) || ($bdate < (2005-100))) )
> 
> http://cvs/source/specific/sguest/www/admin/index.pl.diff?r1=1.92&r2=1.93
> 
> 
> Am I reading this wrong?