in reply to Merging larges files by columns
Although it does not involve Perl, if you have a Unix like system perhaps one of the following commands already does what you want:
At very least it gives you a speed comparison for your Perl code.