In my OS, any character ASCII > 0 and ASCII < 128 are valid characters to use in a file or directory name. However, Perl's
-d operator seems to be balking at this. It's
mkdir command handles it well enough, though.
I get this error:
Unsuccessful stat on filename containing newline at MyModule.pm line 2
+10.
Here is all I'm doing:
next if -d "$dir/$current_filename";
I don't see any advice in
Q&A files or
Q&A directories.
Perldoc -X doesn't specify what might be the problem, and my searches aren't turning up anything, either.
Is there some way to tell Perl's -d function, "It's OK. Nevermind the newline, already! My OS, he likes it, all right?"