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

Just curious Corion...what makes chomp more fragile?

Replies are listed 'Best First'.
Re^3: Unsuccessful stat on file test
by Corion (Patriarch) on Mar 02, 2008 at 18:43 UTC

    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.

      Make sense. I have never used chomp when the extra spaces were a factor in processing.

      Thanks for the tip.