in reply to TIMTOWTDI doesn't mean invent an outlandish approach (usually)

%hash = undef;
Uh, no. At least in some versions of Perl, that is interpreted as %hash = (undef, undef);, making a single element with a key of empty-string (undef as a string) and a value of undef.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: TIMTOWTDI doesn't mean invent an outlandish approach (usually)
by Aristotle (Chancellor) on Oct 13, 2003 at 10:15 UTC
    Quoth davido:
    As merlyn poined out, the third solution isn't a solution at all.
    Don't read so fast next time. ;)

    Makeshifts last the longest.