[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

convert a line with whitespaces into a string containing lin

Vellingiri Arul

9/19/2007 9:38:00 AM

Dear Friends,
Any one answer for this questons.

convert a line with whitespaces into a string containing line breaks
Thank you.
--
Posted via http://www.ruby-....

3 Answers

Xavier Noria

9/19/2007 9:43:00 AM

0

On Sep 19, 2007, at 11:37 AM, Vellingiri Arul wrote:

> Dear Friends,
> Any one answer for this questons.
>
> convert a line with whitespaces into a string containing line
> breaks

str = "\n\n"

Now, seriously, is that homework?

-- fxn


Vellingiri Arul

9/19/2007 9:47:00 AM

0

Xavier Noria wrote:
> On Sep 19, 2007, at 11:37 AM, Vellingiri Arul wrote:
>
>> Dear Friends,
>> Any one answer for this questons.
>>
>> convert a line with whitespaces into a string containing line
>> breaks
>
> str = "\n\n"
>
> Now, seriously, is that homework?
>
> -- fxn

very very Thank you.
By
Vellingiri
--
Posted via http://www.ruby-....

Xavier Noria

9/19/2007 10:00:00 AM

0

On Sep 19, 2007, at 11:47 AM, Vellingiri Arul wrote:

> Xavier Noria wrote:
>> On Sep 19, 2007, at 11:37 AM, Vellingiri Arul wrote:
>>
>>> Dear Friends,
>>> Any one answer for this questons.
>>>
>>> convert a line with whitespaces into a string containing line
>>> breaks
>>
>> str = "\n\n"
>>
>> Now, seriously, is that homework?
>>
>> -- fxn
>
> very very Thank you.

Hmmmm... just in case, that was kind of a joke about the strict
interpretation of the exercise... modulus a license. That didn't
solve the problem. In the first place because that's not the
intention of the exercise, and on the other hand because an
assignment actually does not _convert_ any given string.