in reply to Re: Text::Diff help
in thread Text::Diff help

It exists, because a pair of lines later,
open OUTPUT, ">output.new" or die $!;
But it is empty.

Update: Heh, I should have read the whole code :-) The file is even being written to, but as jethro noticed, its handle is not closed, so the "expect" line is probably still in the buffer.