in reply to Checking for Arguments before Usage?

on your commented out line, try the following
my $inputValue = $_[0] || "some default value in case of no argument" +;
If there is a chance that your argument won't exist, always set up some kind of error checking or set a default value. the code i've used is a shorter version of an if:else construct.