Chad Perrin schreef:

> This is kind of a frivolous question, but . . . is there some way to
> golf this?
> 
> while (<>) {
>     s/\n/ /;
>     print;
> }

Create a file called (for example) "-p" with somewhat like this:

#!/usr/bin/perl -p
y/\n/ /


It can run on itself: -p -p

-- 
Affijn, Ruud

"Gewoon is een tijger."

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to