sub do_head { my($heading, @data) = @_; return "

$heading

" if grep { defined($_) } @data; return ""; }