Use only on a scalar value, an entire array or hash, or a subroutine name. ... The undef function will probably not do what you expect on most special variables