in reply to time the file is put inside the server

Hi Ovid,thanks for helping me, actually,I want to print out the time the file is created.as we can see,when we right click the file name and see the properties,it will tell the time the file is created,modified and accessed,and I want to print anyone of it.how I can do it? Please check my script guys. opendir (DIR,$dir) or die "Can't open folder $dir: $!\n"; @files = readdir DIR or die "Couldn't read from $dir: $!\n"; foreach $file (@files) { use Time::localtime; my $ctime = (stat $file)10; print "$file $ctime \n"; } closedir DIR; thanks for the concern
  • Comment on Re: time the file is put inside the server

Replies are listed 'Best First'.
RE: Re: time the file is put inside the server
by vrempire (Sexton) on Aug 07, 2000 at 08:00 UTC
    sorry,for the program.how i gonna make it easily readable?
      Put < code > tags around the code.
       ______________________________________________
      |_____¸.·ooO--(> cRaZy is co01. <)--Ooo·.¸_____|
       ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ