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.
In reply to Re: Extract file type from stat() mode
by dragonchild
in thread Extract file type from stat() mode
by joe_s
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |