Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: folder properties / modified date

by snadra (Scribe)
on Jul 21, 2003 at 10:42 UTC ( #276208=note: print w/replies, xml ) Need Help??


in reply to folder properties / modified date

You can use the function stat for getting informations about a file:
my @info = stat($file); my $last_access = $info[8]; my $last_modification = $info[9];
more information about stat(): perldoc -f stat

You can also use the file test operators for that.
# Age of file in days since modification: -M $file # Age of file in day since last access: -A $file # Age of file in days since inode change: -C $file
For more information read perldoc perlop

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://276208]
help
Chatterbox?
[nysus]: so, I can't seem to post to perlmonks
[nysus]: I just get a "preview" button but no way to submit

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2017-12-15 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (416 votes). Check out past polls.

    Notices?