Thursday February 13, 2003
07:39 AM
The treetops of a bad neighbourhood
Have I already mentioned here how much I dislike pseudo-hashes ? From perlref
(5.8.0), we read :
you may use an array reference in some contexts that
would normally require a hash reference. That means that if you have
mistakenly used an array ref where a hash ref was expected, (especially in the
middle of a large and complex data structure, that's funnier), this may
silently go very wrong (as perl doesn't even warn you that you're using a
pseudo-hash). In my case, this meant two hours hunting down a
Out of
memory! /
Callback called exit error.
(I think Jarkko added
a deprecation warning for pseudo-hashes in 5.8.1-to-be, but I'm not sure.)
-- Title of this journal entry by David King (Happy Apple)
yes, indeed (Score:3, Informative)
It's the dereferencing of pseudo-hashes that triggers the warning.
Reply to This
Our long national nightmare is over. (Score:2)
[ 17725] By: hv on 2002/08/17 00:51:19
Log: Subject: [PATCH] Remove pseudo-hashes (complete)
From: Michael G Schwern <schwern@pobox.com>
Date: Tue, 6 Aug 2002 13:05:10 -0700 (21: