in reply to joining to files into columns

Others have already explained why your code doesn't do what you expected, but there's also an easier way to do this (assuming you're on a *nix box) outside of Perl: Use the paste command:
$ cat foo aaa bbb ccc $ cat bar xxx yyy zzz $ paste foo bar aaa xxx bbb yyy ccc zzz $

Replies are listed 'Best First'.
Re^2: joining to files into columns
by runrig (Abbot) on May 18, 2006 at 22:45 UTC
    ...assuming you're on a *nix box...
    ...or have *nix utilities installed (on a Win32 box) or even ppt (on any box with Perl installed).