When you don't have a $txtbox1 argument, presumably you could still pass it to the Perl script and after having given it a dummy value (possibly an empty string, a zero (0), a negative value, whatever normally impossible value, which you Perl script can then identify as a really empty parameter.