Something is getting an error message that is heading to the server before print $Web->header();
is being invoked. This means the output to the server is something like:
Error on line 123: Cannot create foo
Content-Type: text/html; charset=ISO-8859-1
Testing
Which is a bad header.
An easy fix to the printing of the header to the earlier part of the code.
Swapping the lines:
my $SQL = VIN::SQL->new('INDIGO');
print $Web->header();
to
print $Web->header();
my $SQL = VIN::SQL->new('INDIGO');
Will likely fix the problem (of bad header) and instead print the error message that is being generated to the browser.