tutorials:perl_exercises
This is an old revision of the document!
Perl Exercises
Read-and-Write
Read from an input file and write the content to an output file. Assume the two filenames are provided in the command line. You need to know about filehandles before attempting this exercise.
$ cat input.txt George Washington John Adams Thomas Jefferson James Madison James Monroe $ perl read_and_write.pl input.txt output.txt $ cat output.txt George Washington John Adams Thomas Jefferson James Madison James Monroe
tutorials/perl_exercises.1280587555.txt.gz · Last modified: 2010/07/31 22:45 by chkuo