$results = getInput(
-prompt=>"Enter a number between 1 and 10: ",
-type=>INTEGER,
-LTE=>10, #less than or equal to
-GTE=>1, #greater than or equal to
-maxTries=>10);
####
@results = getInput(
-prompt=>"Pick one or more of the following:\n",
-type=>LIST,
-list=>["apple", "banana", "carrot"],
-allowMultiple,
-maxTries=>10);
####
$results = getInput(
-prompt=>"Enter a username: ",
-type=>STRING,
-minLen=>3, #minimum length
-maxLen=>15, #max length
-restrictTo=>sub{/[A-Za-z0-9_@.-]+/}
# the idea is to be able to pass a regex to validate
-maxTries=>10);