in reply to Re: Look ahead and join if the line begins with a +
in thread Look ahead and join if the line begins with a +

     #Map is good, nice way to get all the newlines back {local $"="\n"; print "@list\n"}

  p

Replies are listed 'Best First'.
Re: Re: Re: Look ahead and join if the line begins with a +
by belg4mit (Prior) on Apr 11, 2002 at 19:11 UTC
    Cool, but does the interpolation cost much (for a large list)?

    --
    perl -pe "s/\b;([mnst])/'\1/mg"

      Good point.   {local $,="\n"; print @lines,"\n"}

        p