http://www.perlmonks.org?node_id=1040822


in reply to Perl Stat Issue

File::stat is not returning what you think (check the documentatioon). If you want to use this syntax:

my $mod = (stat($file))[9];

you should probably use the core stat functionnality, rather than the module.