monger has asked for the wisdom of the Perl Monks concerning the following question:
The Setup
I ahve a perl script that runds on a Win2K box via scheduler and parses some network logs. The way it knows what to do is get today's date with
my $time = POSIX::strftime "%Y%m%d",localtime;
and them the following happens to parse yesterday's files:
my $newtime = ($time -1); my $log = $newtime.".log";
As many of you already can see, things broke this morning because 20041001 -1 is 20041000 and not 20040930. So, I'm looking for a fix. I've dug a bit through CPAN and looked at Activestates's info. Many possible modules don't want to compile properly on Win32.
Another complication, I use pp to package my scripts into Win32 executables.
Thanks for any and all assistance,
monger
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date Trickiness
by VSarkiss (Monsignor) on Oct 01, 2004 at 18:11 UTC | |
| |
|
Re: Date Trickiness
by blokhead (Monsignor) on Oct 01, 2004 at 18:13 UTC | |
by monger (Friar) on Oct 01, 2004 at 19:07 UTC | |
|
Re: Date Trickiness
by bmann (Priest) on Oct 01, 2004 at 18:06 UTC | |
by pijll (Beadle) on Oct 02, 2004 at 08:24 UTC | |
by monger (Friar) on Oct 01, 2004 at 19:06 UTC | |
|
Re: Date Trickiness
by Zed_Lopez (Chaplain) on Oct 01, 2004 at 18:04 UTC | |
|
Re: Date Trickiness
by johnnywang (Priest) on Oct 01, 2004 at 19:39 UTC |