We Recommend

Learning Perl Learning Perl
In this smooth, carefully paced course, a leading Perl trainer teaches you to program in the language that threatens to make C, sed, awk, and the Unix shell obsolete for many tasks. This book is the "official" guide for both formal (classroom) and informal learning. It is fully accessible to the novice programmer.


Posted By

noah on 07/03/07


Tagged

time file read AGE 2001 metadata


Versions (?)


age of file?


Published in: Perl 


  1. $age_of_file = -A $file ;
  2.  
  3. $last_modified_date = -M $file ;
  4.  
  5. $inode_last_modified = -C $file ; #Corresponds to the Macintosh "Created Date." [probably obsolete now]
  6.  
  7. $file_exists = -e $file ;
  8.  
  9. $local_time = $^T ;

Report this snippet 

You need to login to post a comment.