in reply to Yesterdays date while daylight saving time change

Date::Simple to the rescue:
$ perl -MDate::Simple=today -wle 'print today() - 1' 2010-03-28

(Update:) Of course this can be generalized to get the previous date from any other date:

$ perl -MDate::Simple=date -wle 'print date("2010-04-01") - 1' 2010-03-31

Or in fact going any number of days forwards or backwards.

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^2: Yesterdays date while daylight saving time change
by Schaelle (Novice) on Mar 29, 2010 at 09:27 UTC

    This would be another solution than, because it's also just one module (like in my solution) with no dependencies.