M. Kristall wrote:
> Chad Perrin wrote:
>> This is kind of a frivolous question, but . . . is there some way to
>> golf this?
>>
>> while (<>) {
>>     s/\n/ /;
>>     print;
>> }
> 
> How about
> print/(.*)\n/while<>

You probably meant:

print/.*/g,$"while<>

:-)

John
-- 
use Perl;
program
fulfillment

-- 
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