in reply to •Re: Line ending transformation
in thread Line ending transformation

I posted the corrected code by mistake. The original version didn't have assertions.
$main::stateIn{'address'} =~ s/[^\015][\012\015][^\012]/\015\012/g;
The code with assertions works properly with single lines but fails with multiple blank lines.

Replies are listed 'Best First'.
•Re: Re: •Re: Line ending transformation
by merlyn (Sage) on Feb 28, 2003 at 20:55 UTC