"John W. Krahn" wrote:
>
> #!/usr/bin/perl -w
> use strict;
>
> # Get the mtime from two files
> my $date1 = (stat $file)[9];
> my $date2 = (stat 'zzp2.txt')[9];
>
> print scalar $date1, ' ', scalar $date2, "\n";
Sorry, I was typing too fast. This line should be:
print scalar localtime($da
It looks very much like you've not installed the Date::Manip module on your system.
Have you?
If not try this at the command-line:
perl -MCPAN -eshell
then tell it:
install Date::Manip
And watch it roll. You may need your sys admin to run 'make install' on it, however.
In fact, you may wa
Alex Harris wrote:
>
> Ok so I'm REALLY REALLY a newbie and this next question is going to sound
> like "where's the spoon" so you can feed me but...
> Here's my code and the error I got. I know it means I'm suppose to include
> something but I'm not sure what.
You are making this _way_ too com
the &ParseDate, and &Date_Cmp are looking for subroutines that would split
the dates up, it appears. So, I would expect your code to include a
subroutine similar to this:
sub ParseDate {
($month,$day,$year) = split /\//;
}
but much more detailed to handle different types of date strings.
-Frank
sounds like yah need to install the Manip pacakge
> -Original Message-
> From: Alex Harris [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 07, 2002 12:26
> To: [EMAIL PROTECTED]
> Subject: date compare problems
>
>
>
>
>
> Ok so I'm REALLY REALLY a newbie and this next question i