CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
comparing files based on timestamps

 



coolraghuram
New User

Mar 18, 2009, 9:39 PM

Post #1 of 2 (433 views)
comparing files based on timestamps Can't Post

Hi,
I have a folder which contains 4 sub folders . how can i know which folder is the latest one based on the timestamps. How to read the timestamps of a file or a folder in perl .Do i need to use any perl module or standard perl is enough.
ex : folder
subfolder1
subfolder2
subfolder3
subfolder4

Thanks in advance


KevinR
Veteran


Mar 18, 2009, 10:22 PM

Post #2 of 2 (432 views)
Re: [coolraghuram] comparing files based on timestamps [In reply to] Can't Post

standard perl, look at the stat() function or the file test operators.
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives