in reply to Regexes, stitching broken lines, and other fun stuff.

while (<SPG>) { s/^\s+//; s/\s+$//; if (!/\s/) { $_ .= <SPG>; redo; } my ($title, $status) = ( split /\s+/ )[0,5]; print "$title $status\n"; }