in reply to Extract file type from stat() mode
my $filetype = $mode & 0770000;
That's your first question. What you really want to know is if the file has been modified or not. -M provides the last modification time.
Best is to lock everything down so that you're the only one allowed to change anything by you taking over the root account and going from there. Anything else is a half-assed attempt.
|
|---|