in reply to What is the easiest way to copy one file to another?
That should suffice for text files, and conceivably binary files with binmode() on.open(ONE, "firstfile") or die("$!\n"); open(TWO, ">secondfile") or die("$!\n"); print TWO while <ONE>; close(ONE); close(TWO);
broquaint
aside: Why is that close() only takes one filehandle? It would be infinitely more handy to have take multiple filehandles. Hmmm ...
Update: once again my replying skills come in too slow ;o)
|
|---|