Since you know that Text::Wrap eats the whitespace, you can put the newline(s) back yourself.
duff
In reply to Re^3: Wrap eats newlines by duff in thread Wrap eats newlines by eznoh