in reply to Re^2: Unsuccessful stat on file test
in thread Unsuccessful stat on file test

In my experience, any whitespace at the end of what should be a filename is extraneous.

Often, files which list filenames come with Windows line endings (\x0D\x0A) and on Unix, chomp will only remove the \x0A, leaving remaining but erroneous whitespace.

Replies are listed 'Best First'.
Re^4: Unsuccessful stat on file test
by spork (Monk) on Mar 02, 2008 at 18:50 UTC
    Make sense. I have never used chomp when the extra spaces were a factor in processing.

    Thanks for the tip.