our @io = $INPUT->param('io'); if (@io) { #this field is not a required field foreach $io (@io) { if ($io =~ /^([0-9,]+)$/ && length($io) < 2) { $io = $1; } else { print "Do not alter this form. Objective field. Your IP has been logged and will be further investigated."; die; } } }