On Wed, 2006-19-04 at 19:36 -0600, Chad Perrin wrote:
> This is kind of a frivolous question, but . . . is there some way to
> golf this?
>
> while (<>) {
> s/\n/ /;
> print;
> }
perl -pe 's/\n/ /'
See `perldoc perlrun` and search for 'Command Switches'.
--
__END__
Just my 0.00000002 million dollars worth,
--- Shawn
"For the things we have to learn before we can do them, we learn by doing them."
Aristotle
* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>