I need to set a variable based on the date.<BR>If the date in my Database is Prior to today, then make $var = old<BR>if the date is today, then $var = now<BR>if the date is after today then $var = later<BR><BR>how would I do that<BR><BR><BR>Here is how i get my date out of the database.<BR>It&#039;s the 9th field in a query that is sent to this array.<BR><BR> $req_data[9] =~ s/^(d{4})-(dd)-(dd).*$/$2-$3-$1/;