Is there anyway for Perl to leave an empty spot in an array if the user leaves a form box empty. I am working on an online scheduler for someone and thought I should prepare for novice users leaving a box empty and messing up an array that will be used by another script.
P.S. I really appreciate all of the help I have received lately.
Air
3:14 am on May 15, 2001 (gmt 0)
The easiest and most secure is to assign a value to the variable yourself when one is not entered or is not what was expected. Then you can easily test for the value you assigned to determine if anythig was entered.
Alternatively whatever is delimiting the fields in the array will simply have two delimiters in a row which will signify an empty field when you retrieve the values from the array.