Some incredibly complex answers here for something that is really very simple.
use POSIX 'strftime'; # NOTE: 86_400 seconds in a day. $yesterdays_month = strftime('%b', time - 86_400);
strftime and localtime work together really well in cases like this. Date::Manip is almost always far too big and slow for real work.
--Perl Training in the UK <http://www.iterative-software.com>
In reply to Re: Month info from 'date'
by davorg
in thread Month info from 'date'
by d00fuss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |