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 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.
> 
> use File::stat;
> 
>    use Time::localtime;
>    $date_string = ctime(stat($file)->mtime);
>    $date_string2 = ctime(stat("zzp2.txt")->mtime);
> 
>    print "$date_string   $date_string2\n";
> 
> 
> $date1=&ParseDate($date_string);
> $date2=&ParseDate($date_string2);
> $flag=&Date_Cmp($date1,$date2);
> if ($flag<0) {
>    print "date 1 is earlier\n";
> } elsif ($flag==0) {
>    print "the two dates are identical.\n";
> } else {
>    print " date2 is earlier\n";
> }
> 
> errors:
> without this: use File::stat;
> i got the following
> 
> Undefined subroutine &main::ParseDate called at ztest.pl line 19.
> 
> when i added: use File::stat;
> 
> i got:
> Can't locate Date/Manip.pm in @INC (@INC contains: 
> /usr/opt/perl5/lib/5.00503/ai
> x /usr/opt/perl5/lib/5.00503 /usr/opt/perl5/lib/site_perl/5.005/aix 
> /usr/opt/perl5/lib/site_perl/5.005 .)
> 
> Does this mean I need to add it to my library and if so HOW!?!??!
> 
> 
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to