in reply to How do I join two files side by side?

print while <>;

And you call it as:

./joinfiles x y > xy

Originally posted as a Categorized Answer.