in reply to Look ahead and join if the line begins with a +
Some good solutions presented here - but - experience shows that the area of greatest difficulty in designing working algorithms is in dealing with "edge conditions".
Ask yourself - those who proposed things like
What happens if the first line of the file starts with a continuation character? Sure, this is logically an invalid case, but . . .line[-1]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Look ahead and join if the line begins with a +
by japhy (Canon) on Apr 11, 2002 at 19:31 UTC |
In Section
Seekers of Perl Wisdom