Peter Farrar wrote: > > 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?
You can use File::Copy to do that: use File::Copy; open my $out, '>', 'outputfile' or die "Cannot open outputfile: $!"; copy( $_, $out ) for 'file1', 'file2', 'file3'; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]