in reply to Control M's with File::Copy

Try telling File::Copy that you're running on Windows. Also - are you opening the file in Unix or Windows? The ^M is usually seen when opening a Windows text file in Unix after ftp'ing it over in binary (instead of ASCII) mode.

Also, it looks a little goofy that you're telling File::Copy to copy a filehandle you've opened in append-only mode ...

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.