Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Re: -Mby ariels (Curate) |
on Jun 30, 2002 at 06:52 UTC ( [id://178326]=note: print w/replies, xml ) | Need Help?? |
Take a look at stat. All the --something operators are just frontends for this function. UN*X keeps track of last access, last modification, and last inode change (often confused with creation time).
-M looks at the mtime (modification time), and subtracts $^T (see perlvar). A better choice might be -C, which looks at ctime (inode change time). Still, that too just looks at the last time you changed something about the file "metadata": creation, permissions, and the like.
In Section
Seekers of Perl Wisdom
|
|