I was using a friends code on an old 2003 server with Perl and made a Perl site that runs multiple SQLs reports. On the old server, once a section was ready, it would display. For instance, the top title of the page and the first SQL report would display while the lower reports continued to run. I was moved to a new server. On the new server, the site with the same code waits for all SQLs to finish before displaying any part of the page. So the user waits with a blank screen when they could already be seeing the title and top faster running reports.
Any ideas on how I can fix this? Is it old Perl code on a new server behavior? The CGI call? One of my USE items? My HTML header or Meta?
Here is the top section of the Perl code with some names made generic.
#!/usr/bin/perl
use LWP::UserAgent;
use HTTP::Request::Common qw(POST GET);
use CGI qw(:standard);
use DBI;
use URI;
$dbh = DBI->connect(Generic DB connection string)
$dbh1 = DBI->connect(Generic DB connection string)
$dbh2 = DBI->connect(Generic DB connection string)
my $q = new CGI();
print $q->header;
print $q->start_html(-head=>meta({-http_equiv => 'X-UA-Compatible',
-content=>'IE=edge'}),
-style => {'src'=>'Styles/myCSS.css'},
-script =>{'type'=>'text/javascript','src'=>'js/jquery-1.7.2.min.js'},
-script =>{'type'=>'text/javascript','src'=>'js/tableCollapse.js'},
-title=>'MyPage');
my $thingA = $q->param('A');
my $thingB = $q->param('B');
Is there an issue in that code? Or perhapse is there some issue where I have a DIV that extends from the top to the very bottom of the site encapsulating all the SQL reports? Any ideas would be appreciated. Thanks!