Peter Weisz
-
2002-12-03
- priority: 2 --> 5
Perl issues a superfluous warning message in the extremely
rare case that we encounter a file with "\n".
"Unsuccessful stat on filename containing newline".
Whenever a -X returns a negative result, and the filename
happens to have a newline in it, perl complains (it
thinks we
forgot to chomp)! This also happens in the File:: modules
workaround: whenever a file-test is done, wrap it in a
function
with "no warnings" inside that function.