Use /m, /s, or both as pattern modifiers.
/s lets . match newline
/m lets ^ and $ match NEXT TO a newline
This is straight out of the
PERL Cookbook, by
Tom Christiansen & Nathan Torkington (O'Reilly).
You also might look at the format of the log file more closely.
If EVERY entry is 2 lines then it's a simple matter of changing the iteration & then replacing the \n's with whitespace.
If it varies, then you want to test for the pattern that Starts the next line.
It looks like you have a datestamp there that you could match against.
Of course when you're done, you may want to:
for $entry(@logentries) {
$ entry =~ tr/(\n|\r)//g;
}
I hope that helps & isn't too obvious.
Hey! This isn't a parachute, it's a backpack!!!