yankeeblue has asked for the wisdom of the Perl Monks concerning the following question:
I'm a newbie to Perl so any help will be greatly appreciated. I'm having a problem figuring out how to concatenate the contents of two files.
I basically have file A.txt and file B.txt. I would like the contents of file B.txt appended to the end of file A.txt.
I've tried a bunch of things and I can't get it to work. I tried opening a file handle for A.txt (for appending), and print the file B.txt to it, but all I got was the line B.txt at the end of the file A.txt (obviously wrong).
TIA for your help.
I basically have file A.txt and file B.txt. I would like the contents of file B.txt appended to the end of file A.txt.
I've tried a bunch of things and I can't get it to work. I tried opening a file handle for A.txt (for appending), and print the file B.txt to it, but all I got was the line B.txt at the end of the file A.txt (obviously wrong).
TIA for your help.
Back to
Seekers of Perl Wisdom