I get an error that I do not understand. I use File: Find to overwrite fylesystem on Windows using Activestate Perl 5.8.8 and try to set $File::Find::name ; therefore I am not stat - the name of the file obtained from scanning a text file requiring the removal of chomp -ing or a new line. I was unable to get the file modification time, mtime at:
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks) = stat($File::Find::name);
so try
-s $File::Find::name
gives me an error:
Failed stat for file name containing new line
Typical file name found: F01-01-10 Num 0-00000.pdf, but I get the same error even when renaming to E02.pdf
source share