in reply to Yesterday Date

use Date::Business; my $Target = new Date::Business( OFFSET => -1 );
The above returns a string of the prior (today -1 ) business date.

If you do a little initialization, you can also ignore holidays, or determine the day before any specified date.