Advertisement

03.04.2001 at 11:45PM PST, ID: 20086948
[x]
Attachment Details

Concatenating files

Asked by offer in Perl Programming Language

Tags: perl, concatenating, files

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
[+][-]03.04.2001 at 11:49PM PST, ID: 5900157

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: perl, concatenating, files
Sign Up Now!
Solution Provided By: shlomoy
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.04.2001 at 11:51PM PST, ID: 5900163

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.04.2001 at 11:56PM PST, ID: 5900185

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.05.2001 at 11:25AM PST, ID: 5902017

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32