When writing a c-shell script, I use "cat file1 file2 file3 > results_file" to concatenate files 1 through 3 to results_file. What is an easy way to do this in Perl? I want to give the names file 1 to 3 as command line arguments; results_file should be a fixed name inside the script (I can always change it manually if I want to in the future...).
Start Free Trial