if( grep( $_ !~ /^\d+$/, @{$INPUT{'checked_ids'}) ){ # you have bad data }