##
if ( param('PROCESS') ) {
# They're using your form to process their input...
# Now you can check if the filename is given
if (!defined($report)) { die ...; }
} else {
# They're using your program for the first time
print "7.) What do you want to name ...";
}