note
Masem
<CODE>
my $ymd = printf("%04d%02d%02d",$year+1900,$mon+1,$mday);
</CODE>
printf returns 1 if printing was successful, otherwise zero. Thus $ymd is 1; the print statement follows what printf has printed out.
<P>
Make that sprintf, and your problems are gone.
<P>
<P>
-----------------------------------------------------
<BR>
<I>
<A HREF="http://mneylon.masemware.com/">Dr. Michael K. Neylon</A> - <a href="mailto:mneylon-pm@masemware.com">mneylon-pm@masemware.com</a>
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
</I>
102824
102824