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 want to just ask them to install it for you... MC --- Alex Harris <[EMAIL PROTECTED]> 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. > > 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] > __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]