> -----Original Message----- > From: COLLINEAU Franck FTRD/DMI/TAM > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 20, 2001 3:31 AM > To: [EMAIL PROTECTED] > Subject: Stat function > > > Hi! > > I have the following code: > > #!/usr/bin/perl -w > open(FIC,">/home/collineau/Perl/Programmes/01_informatique/sau > ve/c0111_05.ht > m") || die "Impossible d'ouvrir $!\n";; > > @tab = stat (FIC); > > print scalar localtime($tab[10]); > > > The date of c0111_05.htm is november 5th 2001. > > But the print is now ! > > What is the problem ?
You are opening the file for output, which is overwriting any previous contents. Also, you probably want mtime (9) and not ctime (10). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]