in reply to Date Handling in Perl

For your end-of-month problem, can you do this, or similar, with your system date command?

$ date --date=yesterday +%d 10