if(param('action') eq 'Yes') { &delete; #this will delete the value in "name" } elsif(param('action') eq "No') { &keep; #this will keep the value in "name" } else { &print_form; #this prints the initial screen }