sub function { # code in here } #### @$required = split /,/, $$formdata{'required'} unless ($$formdata{'required'} eq ""); $$redirect = $$formdata{'redirect'} unless ($$formdata{'required'} eq ""); . . . #### $method = "An error with the script's installation has occured. Please contact the webmaster with the error messages listed below!" if $method == 0; $method = "An error occured with your submission. Please check the errors and make any necessary modficiations!" if $method == 1;