Menu

#9 Unsuccessful stat on fname with newline

open
nobody
None
2
2002-12-12
2002-11-17
Peter Weisz
No

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.

Discussion

  • Peter Weisz

    Peter Weisz - 2002-12-03
    • priority: 2 --> 5
     
  • Peter Weisz

    Peter Weisz - 2002-12-12
    • priority: 5 --> 2
     

Log in to post a comment.

Auth0 Logo