in reply to Reading Text from file and reorganization
perl -pe 's/\n/" ".<>/e' <infile >outfile [download]
-- Randal L. Schwartz, Perl hacker