in reply to Date Time problem.

Consider using DateTime.

use strict; use warnings; use DateTime; my $dt = DateTime->now; $dt->subtract( days => 1 ); my $curLogDate = $dt->year . '0' . $dt->mon . '0' . $dt->mday;

Replies are listed 'Best First'.
Re^2: Date Time problem.
by ikegami (Patriarch) on Sep 04, 2009 at 19:02 UTC
    While you copied the OP's behaviour of using "...012025" for Christmas, he probably wants "...1225".
    my $curLogDate = $dt->ymd('');