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.
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (300 votes). Check out past polls.