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.


  • In general, if you think something isn't in Perl, try it out, because it usually is. :-)
  • "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"