in reply to Month info from 'date'
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>
|
|---|