> Hi All, > > Sorry if this is a stupid question. It took me awhile to > figure out I could use the File::Copy module to copy a file, > and this is about the same level of ignorance. > > Is there an easy way to concatenate two (text) files in Perl, > short of opening two to read and one to write and then loop > loop looping the two input files into the output file? >
Yup! And you're on the right track use File::Slurp $file1 = read_file("$fileone"); $file2 = read_file("$filetwo"); write_file($filenew,"$file1\n$file2") Done! DMuey > TIA, > Peter > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]