On Wed, Jul 11, 2001 at 10:49:25AM -0500, Tom Yarrish wrote:
> However, on the production box, it doesn't (meaning if today is the 11th,
> the log file will be 20010711.log, which is not what I want). Can anyone
> give me some ideas on why this might be happening?
I can't see anything in your code that would cause this problem, other than
possible how you're fixing the date. There is a much simpler way of fixing
the date so it's the previous day:
my($mday, $mon, $year) = (localtime(time - 86400))[3,4,5];
This obviates the need for your datefix() subroutine, and may fix your
problem. It also has the added benefit of correctly handling a log change
on January 1, 2001.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--