in reply to Re: Picking up files based on datestamp
in thread Picking up files based on datestamp

Use time and localtime.

my ($day, $month, $year) = (localtime(time() - 86400))[3, 4, 5]; $month += 1; $year += 1900;

I hope this is of use.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^3: Picking up files based on datestamp
by pilcrow (Sexton) on Sep 19, 2007 at 12:22 UTC
    time() - 86400

    Beware that this calculation is correct only if days are 24 hours long. Not all of mine are. :)

    perldoc -q yesterday

    -pilcrow