in reply to Tell me how it works!

From the camel-book:
Use only on a scalar value, an entire array or hash, or a subroutine n +ame. ... The undef function will probably not do what you expect on most specia +l variables

Replies are listed 'Best First'.
Re^2: Tell me how it works!
by citromatik (Curate) on Jan 28, 2009 at 15:21 UTC

    Hmmm... That is not what the documentation says (at least for versions 5.10 and 5.8.8)

    undef - Undefines the value of EXPR, which must be an lvalue. Use only on a scalar value, an array (using "@"), a hash (using "%"), a subroutine (using "&"), or a typeglob (using "*")

    citromatik