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

I bet .data_file looks like that, too. There is no connection between copying the file and the presence of ^M. ^M is usually a problem when you copy a DOS file to Unix .... but you're on DOS, so it should be the normal state of affairs. What are you viewing the file with?

As far as your code is concerned ...

When you open() a file, it implies you are going to print() to the file.

copy() does not require open()-ing a file.

--
TTTATCGGTCGTTATATAGATGTTTGCA

Replies are listed 'Best First'.
Re: Re: Control M's with File::Copy
by dragonchild (Archbishop) on Jul 21, 2003 at 19:41 UTC
    When you open() a file, it implies you are going to print() to the file.

    copy() does not require open()-ing a file.

    Actually, File::Copy will accept a filename or a filehandle, opened for whatever reason. It's poor coding style, but it (apparently) will work.

    ------
    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.