in reply to remember perl one-liners

I haven't tried this...

... pop @lines; chomp(@lines); my $hist = join '', @lines; ...
Then, later, when reading you could replace ";" by ";\n"...