You mean like this? perl -p -e "s/\n/ /"
(Some tweaking may be necessary for non-Win32 OS) -----Original Message----- From: Chad Perrin [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 19, 2006 6:36 PM To: beginners@perl.org Subject: golf This is kind of a frivolous question, but . . . is there some way to golf this? while (<>) { s/\n/ /; print; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>