I am running a Perl script in windows ,which creates multiple text files with some info. I would like some help with a Perl script to put all the text file data into one file side by side. I know I could use nested foreach
loop to parse through each file and print them side by side. But the number of files varies.
For example:
Input:
file1.txt
:
AAA
BBB
CCC
file2.txt
:
DDD
EEE
FFF
Output:
AAA DDD
BBB EEE
CCC FFF
Thanks in advance