in reply to Re: Can we do without auxiliary variable here?
in thread Can we do without auxiliary variable here?

Compact solution, but unfortunately doesn't fulfil the specification:

The first solution is not correct, because it would drop the newline characters. The second solution keeps most newline characters, but if the string contains a sequence of \n, all but the first are ignored...

-- 
Ronald Fischer <ynnor@mm.st>