$values[1] = undef; print exists $values[1]; # generates the output: 1, i.e., the array slot contains the value 'undef'.