Use the -no_xhtml pragma to inhibit this:
use CGI '-no_xhtml'; [download]
In reply to Re: CGI IMG tag error by bikeNomad in thread CGI IMG tag error by Melly