You don't chomp newlines from your filenames you read back from find so my guess is that since you call stat with "/home/blah/foo\n" (note the trailing newline) it's failing and you don't notice since you don't check the return fron stat. Also you might look at File::Find or File::Find::Rule (or Path::Tiny might be of related interest) rather than shelling out to find.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: stat function used with linux find gives me no data
by Fletch
in thread stat function used with linux find gives me no data
by daggett
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |