Professional Documents
Culture Documents
29SCS124
Ex. No: 7
23/03/2011 FILE COPY
Aim:
To write a PERL program to copy the contents of one file to another file.
Algorithm:
Create and open the file1 in the write mode.
Read the contents from the user and write into file1 and close file1.
Create and open the file2 in the write mode and open file1 in read mode.
Program:
Output:
Result:
Thus the PERL program to copy the contents of one file to another file was successfully
executed and its output was verified.