I am curious to learn how "merging of many files" will be implemented in Perl. Linux command "paste" lets you merge multiple files line by line. How would one achieve something like that in Perl? Is it possible to write a program that does not require multiple file handles for this purpose? I am also very interested in the concept of opening file handles dynamically i.e. number of handles will be determined at run time. Thanks all!
PS: I am not looking for an implementation, general idea will be very helpful.