my $q = CGI->new(); say $q->header() , $q->start_html("Z weather"); say "
"; say "

Weather measurements

"; my $image; my $imageHandle; local $/ = undef; open ($imageHandle , "< $imagefile"); binmode $imageHandle; $image = <$imageHandle>; close ($imageHandle); my $r = CGI->new(); print $r->header(-type=>'image/png') , $image; say "
"; say $q->end_html();