Perl Operators   «Prev  Next»

Perl Read Write - Exercise

Read and Write to a File

Objective:Write a program that takes two filenames from the command line, then reads one file and writes it to the other.

Additional challenge

For an additional challenge, have the program test first if the output file exists and prompt the user to see if he or she wants to overwrite it.
Paste your code in the text area below and click the Submit button when you are finished.