in reply to Re: (MeowChow) Re2: Look ahead and join if the line begins with a +
in thread Look ahead and join if the line begins with a +
$lines[ @lines + 1 - s -^\053|\012--g ] .= $_ while <DATA>;This fails by adding an undef element to the array if a newline is not the final character in the file. Changing my original easy enough though, without any regex or substr nastiness:
chomp, $lines[@lines - s/^\+//] .= $_ while <DATA>;
MeowChow s aamecha.s a..a\u$&owag.print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (MeowChow) Re4: Look ahead and join if the line begins with a +
by tachyon (Chancellor) on Apr 11, 2002 at 10:06 UTC | |
by MeowChow (Vicar) on Apr 11, 2002 at 10:11 UTC |