# check if the 'Generate Report' button is clicked # if so, then set $generate_report to true. if ($generate_report) { # kick off background processing `C:\\Perl\\bin\\perl.exe generate_report.pl &`; # print some feedback text back to user print $cgi->header, $cgi->start_html, "The generate_report.pl script has started in background", $cgi->end_html; }