Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: time the file is put inside the server

by vrempire (Sexton)
on Aug 07, 2000 at 07:59 UTC ( [id://26495]=note: print w/replies, xml ) Need Help??


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·.¸_____|
       ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
      

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://26495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-24 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found