in reply to strip until blank line
There is a very quick way to do this:
local $/ = ""; # set to paragraph mode
$bad_stuff = <FILE>; # reads in until first blank line
# .. $/ is then returned to it's previous
# value, and you can carry on reading from
# <FILE> line by line.
Conway's Game of Life
Perl regular expressions
My Magic 8-Ball™
Results (183 votes). Check out past polls.